Re: [phpbugs@priorwebsites.com: Bug #16681 Updated: Request new words(), word(), wordindex(), wordlength() functions]
| From: | Gabriel Ricard | Date: | Fri, 19 Apr 2002 12:57:06 +0000 |
| Subject: | Re: [phpbugs@priorwebsites.com: Bug #16681 Updated: Request new words(), word(), wordindex(), wordlength() functions] | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83009@lists.php.net to get a copy of this message | ||
Markus Fischer wrote:
word (str, num) Returns the num'th word from string str. If num is greater than the number of words in str, the null string is returned.We've implemented a userland function like this for some code at work and I welcome an implementation in C. The only thing I'd add is an optional field one could use to change the character that separates the words in the sentence. But perhaps that makes it a bit too close to a str_* type function, like explode(). -- Gabriel Ricard gabe@sumorai.net