View Single Post
Old 03-19-2008, 08:13 PM   #9 (permalink)
dschreck
The Contributor
 
dschreck's Avatar
 
Join Date: Nov 2007
Location: California
Posts: 82
Thanks: 0
dschreck is on a distinguished road
Default

Quote:
Originally Posted by Wildhoney View Post
How about this?

php Code:
list($foo, $bar) = array('foo', 'bar');
yeah, that would work. you could also just load an array up:

PHP Code:

$myVars 
= array(
              
'foo' => 'bar',
              
'bar' => 'foo'
          
);
foreach(
$myVars as $key => $val) {
   ${
$key} = $val;

if you just want to do a crap load of vars
__________________
Where I Ramble: http://www.iwilldomybest.com/
What I do: Zynga Game Network
Senior Software Engineer at CityVille
dschreck is offline  
Reply With Quote
The Following User Says Thank You to dschreck For This Useful Post:
Orc (03-19-2008)