Welcome Guest, Not a member yet? Register   Sign In
Problems with foreign key
#7

[eluser]Dam1an[/eluser]
[quote author="Cro_Crx" date="1242425270"]Dam1an: I think in other programming languages switch-case statements are usually quicker than using elseif. Although in PHP they seem to perform almost exactly the same. http://www.phpbench.com/ (4th test from the top). In that particular test else if was a tad quicker.

Although putting the most common errors first is defiantly good design and speeds up the program a lil Big Grin[/quote]

Really?!?! *Looks at benchmarks*
I guess this is comming from a primarily Java background, and the difference there was much quicker. It might be to do with the fact in Java, a switch only works on numbers and chars (not strings) so they can be optimised more then a switch on strings could in PHP?


Messages In This Thread
Problems with foreign key - by El Forum - 05-14-2009, 05:19 PM
Problems with foreign key - by El Forum - 05-14-2009, 06:01 PM
Problems with foreign key - by El Forum - 05-15-2009, 02:18 AM
Problems with foreign key - by El Forum - 05-15-2009, 08:58 AM
Problems with foreign key - by El Forum - 05-15-2009, 09:10 AM
Problems with foreign key - by El Forum - 05-15-2009, 11:07 AM
Problems with foreign key - by El Forum - 05-15-2009, 12:20 PM
Problems with foreign key - by El Forum - 05-15-2009, 09:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB