Re: [PHP] Retrieving function values

2010-11-15 Thread Richard Quadling
On 15 November 2010 03:12, Ron Piggott 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_parsi

Re: [PHP] Retrieving function values

2010-11-14 Thread Tamara Temple
On Nov 14, 2010, at 9:12 PM, Ron Piggott wrote: I am writing a custom function and I need to be able to retrieve 3 values from it. To return multiple values, you have to return an array: return array($var1, $var2, $var3); Then at the calling site, you retrieve them with a list co

Re: [PHP] Retrieving function values

2010-11-14 Thread Bastien Koert
On Sun, Nov 14, 2010 at 10:12 PM, Ron Piggott 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 > $continu