Thread: Foreach
View Single Post
Old 03-20-2008, 09:02 PM   #7 (permalink)
sjaq
The Acquainted
 
sjaq's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 113
Thanks: 11
sjaq is on a distinguished road
Default

Actually, there is a faster way for doing a foreach with key and value:
PHP Code:
$key array_keys($aHash);
$size count($key);
for (
$i=0$i<$size$i++) $aHash[$key[$i]] .= "a"
source
sjaq is offline  
Reply With Quote