I think there’s some simple syntax I’m unaware of. Here’s what I’m trying to do:
I have a number of sound files that are preloaded and called sound1, sound2 … sound10. And I want to play a random sound.
However if I generate a random number and stick it on the end of “sound” to create a string like “sound3”, then that doesn’t work.
What I’m after is the PHP equivalent of ${“sound” . $i}
On a related note, working the other way round how do I get an object or function name treated as a string?
Thanks! [import]uid: 132606 topic_id: 31221 reply_id: 331221[/import]