@socketwenchCantakerous Lesbian Sourceress I have not written PHP since the Obama administration. I am looking at some code which, for reasons I do not know, is accessing the 0th element of (something) using curly braces. Do you agree with the following statement?
- If it is an array, and I replace the curly braces with square braces, it will work and be safe.
- If it is a string, I need to replace it with a call to the substr() function.