Some searching through Google (and my own experience) shows that in PHP you can't grab an array element when it's been returned from a function call on the same line. For example, you can't do:
However, I've come across a neat little trick:
It actually works. Problem is, I don't know why it works. If someone could explain, that would be great.