Jim Lucas wrote:
I don't think the above will work either, afaik php doesn't allow you to have variable names start with numbers.

well debatable..

#################
$12 = 'value';
Parsing Error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$'

#################
$varname = 12;
$$varname = 'sentence';
echo $$varname;
//echos sentence

#################
${12} = 'some string here';
echo ${12};
//echos some string here

################
//you can get really stupid with this..
${false} = 'some string here';
echo ${''};
//echos some string here

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to