[thelist] PHP - array manipulation

Bill Haenel bill at webmarketingworx.com
Fri May 10 16:18:01 CDT 2002


$foo['date'] = $foo['year'].'-'.$foo['month'].'-'.$foo['day'];
unset($foo['month']);
unset($foo['day']);
unset($foo['year']);

./peter


Uh, yeah - it does seem like this would be way too obvious, doesn't it? I
was apparently looking for the more complicated approach. After all, what
kind of geek would I be if I did it the easy way?

Thanks!

BH




More information about the thelist mailing list