Anyone know which would be more efficient (very psuedo-code 🙂
if ($var == 1)
{
code segment x
}
else
{
code segment y
}
--or--
if ($var == 1)
FunctionX();
else FunctionY();
(with functionX and functionY having the exact code segments as listed above)
What I guess I'm really wondering is exactly how PHP decides to look at and/or process code, if it processes a function before it's called or not, etc. Any insight is much appreciated.
Thanks,
Brian