Olivier Miakinen a écrit :
> echo $string{0}; // a
> echo $string{3}; // d
> echo $string{strlen($string)-1}; // f
>
> Tu aurais le courage de signaler le fait (en anglais, probablement) ?
C'est déjà fait dans les commentaires:
Robert Chapin
26-Jun-2007 11:40
All the references to "curly braces" on this page appear to be obsolete.
According to
http://us.php.net/manual/en/language.types.string.php
"Using square array-brackets is preferred because the {braces} style is
deprecated as of PHP 6."