I'm still concerned about using "exit" in my if/then coding.
My php page is a "mile long" (all the html code makes it so).
THEREFORE, I am thinking that after each "if" statement (even though I'm using, "else") it wouldn't hurt to "throw in" exit statements, to let PHP know that it doesn't have to go through my entire page.
Here is just the code itself. (mentally picture a ton of html code between each if/then statment:
<?php
if((browsertest() == true) && ($javascript != 'no'))
{
echo "GOOD BROWSER";
exit;
}
elseif ($javascript == 'no') {
echo "NO JAVASCRIPT";
exit;
}
else {
echo "OLD BROWSER WITH JAVASCRIPT";
exit;
}
?>
So, in my example above, I've used 3 "exit" commands. If, for example, in the first statment if I left out the, "exit," then wouldn't php go ahead and check each of the other statements?
Theoretically speaking, won't I shave a bit of parsing time off if I put the exit statments in there?
Thanks