Re: Retrieving function values

From: Date: Mon, 15 Nov 2010 04:08:32 +0000
Subject: Re: Retrieving function values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-309490@lists.php.net to get a copy of this message
On Sun, Nov 14, 2010 at 10:12 PM, Ron Piggott <ron.piggott@actsministries.org> wrote: > I am writing a custom function and I need to be able to retrieve 3 values from it. > > string_parse_tool ( $string_to_parse ) > > The 3 variables I need to retrieve from the function are: > > $string_to_parse > $string_to_display > $continue_parsing > > I only know how to retrieve 1 variable from a function, not 3.  Could someone help me please? > > Thank you. > > Ron 2 options Pass them back as an array $data['parse'] = "some value"; $data['display'] = "some value"; $data['continue'] = "some value"; return $data; or send it back as a delimited string $data = $parse .'|'. $display .'|'. $continue; return $data; -- Bastien Cat, the other other white meat

« previous php.general (#309490) next »