note 84237 rejected from language.types.string by danbrown

From: Date: Wed, 09 Jul 2008 13:44:28 +0000
Subject: note 84237 rejected from language.types.string by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141305@lists.php.net to get a copy of this message
Note Submitter: sassospicco ---- Note this behavior, accessing a character. <?php $a = 'AB'; strlen($a); // 2 // Ok so far $a[1] = NULL; strlen($a); // 2 // The second character still exists... var_dump($a); // string(2) "A" // ...but it is not displayed. ord($a[1]); // 0 // ASCII value: 0 ?>

« previous php.notes (#141305) next »