In Flash (AS2) you can add strings like so:
variable = "a"+"b"
and the result will be a a string with the value of "ab".
I understand this (concatenation of strings) is done with the "." operator in php, but I'm wondering whether it's possible to do this when you pass an argument?
Specifically, what I'm trying to do is this:
$o = get_post_meta($id, 'locationForDay'.$i, true);
Where "get_post_meta" is a wordpress function for getting custom data attached to a blog post. (I'm trying to fetch a bunch of variables called 'locationForDay1", "...2" and so on in a loop)
(I have tried it out and got an error, but I'm not sure whether it's based on this or other mistakes in my amateur-ish php)