@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.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/mcc/statuses/114870510309116095 on your instance and quote it. (Note that quoting is not supported in Mastodon.)