John,
Dude on another forum posted a question asking if lots of echo() functions is CPU intensive...
Well, I told him to measure and let us know...
PHP provides terrific time functions such as microtime()...
You start it
$time1=microtime();
Here will go you 10 if then elses
$time2=microtime();
Then subtract $time1 from $time2 and see the difference in microseconds... You can use time() function to measure seconds, but I doubt that it'll be that slow.
Increase number of if then elses, and test it again. Create a wild process for(;😉; and let it run for 30 seconds, and then test your 10 if then elses and see if the time changed -> and then make your deductions...
If you want to go fancy, formulate a close form formula (something like CPU intensive grows at a rate of N lg N or whatever) so that you can just plug in number of if then elses -> and it'll give you number of seconds or microseconds it'll take to execute under your current computer conditions.
If you'll decide to pull something like that -> let us know about results -> it's always interesting.
Di