[PHP] Returning values from a function

2010-11-14 Thread Ron Piggott

I am writing a string parsing function.


I need to return 3 values from a function:

return $string_to_display;
return $string_to_parse;
return $continue_parsing;

I am not sure how to retrieve these variables.

The Verse of the Day
“Encouragement from God’s Word”
http://www.TheVerseOfTheDay.info

Re: [PHP] Returning values from a function

2010-11-14 Thread 惠新宸

Hi:
  return array(
 'string_to_display' = $string_to_display,
 .
  );

Best regards

惠新宸 Xinchen Hui
http://www.laruence.com/

On 2010/11/15 11:10, Ron Piggott wrote:


I am writing a string parsing function.


I need to return 3 values from a function:

return $string_to_display;
return $string_to_parse;
return $continue_parsing;

I am not sure how to retrieve these variables.

The Verse of the Day
“Encouragement from God’s Word”
http://www.TheVerseOfTheDay.info


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php