Wednesday, October 20, 2010
How to get Array variable name
$a = array('variable'-> 'value', 'variable2' -> 'value2');
foreach($a as $key => $value){
$$key = $value;
}
echo $variable."
;
echo $varaible2;
Output:
value
value2
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment