note 11971 added to function.strlen.php

From: Date: Thu, 15 Mar 2001 22:07:29 +0000
Subject: note 11971 added to function.strlen.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12449@lists.php.net to get a copy of this message
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 http://www.php.net/manual/en/function.strlen.php

« previous php.notes (#12449) next »