Piers Cawley <[EMAIL PROTECTED]> writes:

> You're still wrong in the oneline case:
> 
> if ($foo) { do_foo_stuff() }
> else      { do_other_stuff() }

Are you sure it isn't:

    $foo ? do_foo_stuff() : do_other_stuff();

Or perhaps (which I was shown in an interview once):

    $foo && do_foo_stuff();
    $foo || do_other_stuff();

-Dom

-- 
| Semantico: creators of major online resources          |
|       URL: http://www.semantico.com/                   |
|       Tel: +44 (1273) 722222                           |
|   Address: 33 Bond St., Brighton, Sussex, BN1 1RD, UK. |

Reply via email to