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

2009-03-28 Thread Andrea Giammarchi
str_replace I do not get the problem at all specially now that you do not need variables ... and if you will end up with eval, you are doing something wrong. Regards Date: Sat, 28 Mar 2009 17:09:15 +0300 Subject: Re: [PHP] Calling function on the same line? From: danondan...@gmail.com To: an_...@ho

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

2009-03-28 Thread Andrea Giammarchi
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: Date: Sun, 29 Mar 2009 01:06:16 +0800 > Subject: Re: [PHP] Calling function on the same line? > From: virgilio.quila...@gmail.com > To: an_...@hotmail

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

2009-03-28 Thread Virgilio Quilario
> > I miss the utility to do stuff like that ... seriously ... but in any case: > > echo ($f = 'str_replace') ? $f("a", "b", "aaa") : null; > ?> > > where echo is optional. > > Regards you mean this virgil http://www.jampmark.com -- PHP General Mailing List (http://www.php.net/) To unsubscrib

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

2009-03-28 Thread Andrea Giammarchi
I miss the utility to do stuff like that ... seriously ... but in any case: where echo is optional. Regards > Date: Sat, 28 Mar 2009 15:26:18 +0300 > From: danondan...@gmail.com > To: php-general@lists.php.net > Subject: [PHP] Calling function on the same line? > > Is there any way to do so