|
Posted by David Haynes on 05/16/06 23:48
Rik wrote:
> David Haynes wrote:
>> printf("<option %s>%s</option>\n", ($choice == $townsearch) ?
>> 'selected' : '', $choice);
>
> Damn, didn't know one could nest the () ? : ; syntax like that.. nice.
>
> Grtz,
Yep!
One of my favorites is:
printf("aBoolean is %s\n", $aBoolean ? 'true' : 'false');
-david-
Navigation:
[Reply to this message]
|