note 29996 deleted from language.types.string by danbrown

From: Date: Tue, 17 May 2011 14:21:30 +0000
Subject: note 29996 deleted from language.types.string by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179804@lists.php.net to get a copy of this message
Note Submitter: ---- Regarding "String access by character": Apparently if you edit a specific character in a string, causing the string to be non-continuous, blank spaces will be added in the empty spots. echo '<pre>'; $str = '0123'; echo "$str\n"; $str[4] = '4'; echo "$str\n"; $str[6] = '6'; echo "$str\n"; This will output: 0123 01234 01234 6 Notice the blank space where 5 should be.

« previous php.notes (#179804) next »