At 22:56 18.02.2003, Joachim Krebs spoke out and said: --------------------[snip]-------------------- >Is there any speed difference at all from the following two code >blocks (miniscule or not)? If so, which is faster? > >$cfg["db"]["host"] = "xxxx"; >$cfg["db"]["user"] = "yyyy"; >$cfg["db"]["pass"] = "zzzz"; > >or > >$cfg["db"] = array("host"=>"xxxx", "user"=>"yyyy", "pass"=>"zzzz"); --------------------[snip]--------------------
The difference is minimal. On our 2xPIII/1GHz Dell server, iterating both methods 100.000 times, the second method performs 0.18 seconds faster than the first. This result is stable for more than 100 passes. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php