View Single Post
Old 06-17-2008, 10:35 AM   #2 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

PHP Code:
$arr = array(
    
'green',
    
'blue',
    
'white',
    
'sky',
    
'cloud'
);

${
$arr[3]} = $arr[1];
echo 
$sky
PHP: Variable variables - Manual

probably a better way of doing it, but i havnt put much time into it.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
The Following User Says Thank You to sketchMedia For This Useful Post:
Dave (06-17-2008)