note 12924 deleted from function.strlen by dams

From: Date: Sat, 27 Jul 2002 16:23:51 +0000
Subject: note 12924 deleted from function.strlen by dams
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-33675@lists.php.net to get a copy of this message
I installed the WIN32 binaries and had the same null character problem. I had to revise the code above to make it work. Here is what I came up with: $s = "your string here"; $tmp=0; while($tmp<strlen($s) && $c=$s[$tmp++]) {if ($c!=chr(0)){echo $c;}}

« previous php.notes (#33675) next »