Posted by Rami Elomaa on 05/01/07 16:09
Tyno Gendo kirjoitti:
> I have just written a line of code like this (yes, many people think
> this stinks bad):
>
> <?php true == isset($page_seq) ? echo "$page_seq" : false; ?>
You could make this shorter ;)
<?php isset($page_seq) && print($page_seq) ?>
But why not just:
<?php @echo $page_seq; ?>
If it's not set, it's not gonna print anything either, why bother testing?
--
Rami.Elomaa@gmail.com
"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
[Back to original message]
|