?php $rest = substr( "abcdef", 1); / / returns "bcdef "$rest = substr("abcdef", 1, 3); / / returns "bcd" $rest = substr("abcdef", 0, 4); / / returns "abcd "$rest = substr("abcdef", 0, 8); / / returns "abcdef" / / Accessing via curly braces is another option $string = 'abcdef'; echo $string{0}; / / returns a echo $string{3}; / / returns d?
?php $rest = substr( "abcdef", 1); / / retourne "bcdef "$rest = substr("abcdef", 1, 3); / / retourne "bcd" $rest = substr("abcdef", 0, 4); / / retourne "abcd "$rest = substr("abcdef", 0, 8); / / retourne "abcdef" / / Acc eacute;der aux caract egrave;res vis les accolades $string = 'abcdef'; echo $string{0}; / / retourne a echo $string{3}; / / retourne d?