Posted by R. Rajesh Jeba Anbiah on 05/06/06 21:54
Don wrote:
> Hi,
>
> The behavior between if else and switch is not different in PHP.
> However is there difference for the performance (I know in C it's
> different) while interpreting the script?
IIRC, switch is based on look up tables and might be faster.
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Navigation:
[Reply to this message]
|