I'm looking for a way to dynamically name variables and haven't found the answer yet (looked through these forums, searched several sites, php documentation, etc.).
Here's a Perl sample of what I'm trying to do in PHP:
$var_name = 'test';
${$var_name} = 'Hello World!';
print $test;
I've not found a way to do this in PHP yet. I have tried the above as well as:
$[$var_name]
$"$var_name"
$$var_name
Any help would be appreciated.
Scott