Re: Calling function on the same line?
| From: | Virgilio Quilario | Date: | Sat, 28 Mar 2009 17:06:16 +0000 |
| Subject: | Re: Calling function on the same line? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-290793@lists.php.net to get a copy of this message | ||
>
> I miss the utility to do stuff like that ... seriously ... but in any case:
>
> <?php
> echo ($f = 'str_replace') ? $f("a", "b", "aaa") : null;
> ?>
>
> where echo is optional.
>
> Regards
you mean this
<?= ($f = 'str_replace') ? $f("a","b","aaa") : null;
?>
virgil
http://www.jampmark.com