note 31320 deleted from function.preg-split by sniper

From: Date: Tue, 30 Sep 2003 12:35:06 +0000
Subject: note 31320 deleted from function.preg-split by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57493@lists.php.net to get a copy of this message
Note Submitter: hexasid@poczta.onet.pl ---- String datatype is already an array of characters: $str = "blablabla"; $chr = $str[0]; echo $chr; above piece of code will produce: 'b', but documentation says that: "Characters within strings may be accessed by specifying the zero-based offset of the desired character after the string in curly braces... ...For backwards compatibility, you can still use array-braces for the same purpose. However, this syntax is deprecated as of PHP 4. " so using '[]' instead of '{}' is better.

« previous php.notes (#57493) next »