Forum Moderators: coopster
print($string[0]); //will work now, may not in future
print($string{0}); //"better"
wished I could use that function more than once ;)
I felt the same way about file_put_contents(). It seemed so sad that file_get_contents() works in PHP4, but it's complement doesn't, so now I put a file_get_contents() in my standard library with a conditional function definition so it only gets defined if the function file_get_contents() doesn't exist.