function IsBinaryZero($strBin) { $iSize = strlen($strBin); for($x = 0; $x < $iSize; $x++) { if($strBin[$x] != 0) return false; } return true; }