Re: Returning a string from a function

From: Date: Wed, 22 Aug 2001 00:29:19 +0000
Subject: Re: Returning a string from a function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63834@lists.php.net to get a copy of this message
> For($i = 0; $i< (count($items)/1); $i +=1){ > $path=strstr(($items[$i]), '/'); > return $path; You probably want the return *OUTSIDE* the loop. You also probably want $path .= strstr(...), not just = Can't tell for sure, as I don't understand what sed and awk are doing. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#63834) next »