note 11971 deleted from function.strlen by danbrown

From: Date: Thu, 12 Feb 2009 03:17:17 +0000
Subject: note 11971 deleted from function.strlen by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150541@lists.php.net to get a copy of this message
Note Submitter: validus at c-gate dot net ---- Several people here have commented on the termination of strings in PHP with the NULL character. My tests have shown that PHP3 does NOT terminate strings PHP4 DOES terminate with a NULL character. And one of the previous posters seemed to indicate that zero couldn't be a part of a string if it were NULL terminated. It can. A zero is ASCII 48 and a NULL character is ASCII 0. cheers validus

« previous php.notes (#150541) next »