On Sun, Nov 14, 2010 at 10:12 PM, Ron Piggott <ron.piggott@xxxxxxxxxxxxxxxxxx> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php