View Single Post
Old 04-27-2008, 06:29 PM   #1 (permalink)
sarmenhb
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default when would i use a "variable variable"

by a variable variable(dynamic Variable) i mean

Code:
<?php

$field = "firstname_field";
$$field = "sarmenhb";

echo "Field Name: ".$field."<br>";
echo "Field Value: ".$$field."<br>";
?>
have you ever used this in your code? if so can you explain how you used it?

thanks
__________________
no signature set
sarmenhb is offline  
Reply With Quote