At 18:59 09.11.2002, samug said:
>But what if you don't know how many elements there will be ahead?
>"Samug" <[EMAIL PROTECTED]> kirjoitti viestissä
>> Could someone tell me why isn't this working?
>> $text = "And what did I tell you?";
>> list($one,$two,$three,$rest) = preg_split("/\s+/", $text);
>> print($rest);

You don't need the number of elements _ahead_, just the number of elements
you want to receive - the "rest" will be in the last element.

   >O     Ernest E. Vogelsinger
   (\)    ICQ #13394035

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to