Re: Functions Returning large strings

From: Date: Thu, 29 Sep 2005 12:11:55 +0000
Subject: Re: Functions Returning large strings
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-223402@lists.php.net to get a copy of this message
On Thu, 29 Sep 2005 11:48:10 +0200, wrote: >Hi >> I have a series of nested functions which recursively return a large string (as apposed >> to working on global string) , is this inefficient? Or is PHP clever enough >> to just pass a pointer? > >> $large_string=fn_one(fn_two(fn_three($some_long_string)))); > >PHP is by no means clever enough to read your mind as to what you want it to >do. > No slight meant to PHP, just wanted to know whether I had to worry about it, according to your reply seems like I must. -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/

« previous php.general (#223402) next »