note 26512 rejected from function.explode by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Sat, 02 Nov 2002 03:57:21 +0000 |
| Subject: | note 26512 rejected from function.explode by jmcastagnetto | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-38896@lists.php.net to get a copy of this message | ||
any one use the limit parameter of explode(). It doesnt seem to limit anything. It still splits up
the whole string. I just want to get the first 10 words of a string.
$strArr = explode(" ",$str,10)
This doesnt work. It returns the whole string as an array. I just want 10 words of the string.