RE: [PHP] Calling function on the same line?

From: Date: Sat, 28 Mar 2009 18:08:47 +0000
Subject: RE: [PHP] Calling function on the same line?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-290795@lists.php.net to get a copy of this message
I don't , I mean if the function is not str_replace you do not necesary need the echo (array_push, as example) This notation: <?= is deprecated since dunno how long ago ... strongly not suggested > Date: Sun, 29 Mar 2009 01:06:16 +0800 > Subject: Re: [PHP] Calling function on the same line? > From: virgilio.quilario@gmail.com > To: an_red@hotmail.com > CC: php-general@lists.php.net > > > > > 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 _________________________________________________________________ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx

« previous php.general (#290795) next »