note 84237 added to language.types.string
| From: | sassospicco at osu1 dot php dot net | Date: | Fri, 04 Jul 2008 15:03:00 +0000 |
| Subject: | note 84237 added to language.types.string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-141171@lists.php.net to get a copy of this message | ||
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
?>
----
Server IP: 213.92.11.19
Probable Submitter: 82.84.53.186
----
Manual Page -- http://www.php.net/manual/en/language.types.string.php
Edit -- https://master.php.net/note/edit/84237
Del: integrated -- https://master.php.net/note/delete/84237/integrated
Del: useless -- https://master.php.net/note/delete/84237/useless
Del: bad code -- https://master.php.net/note/delete/84237/bad+code
Del: spam -- https://master.php.net/note/delete/84237/spam
Del: non-english -- https://master.php.net/note/delete/84237/non-english
Del: in docs -- https://master.php.net/note/delete/84237/in+docs
Del: other reasons-- https://master.php.net/note/delete/84237
Reject -- https://master.php.net/note/reject/84237
Search -- https://master.php.net/manage/user-notes.php