note 19600 deleted from function.substr by nlopess

From: Date: Sat, 26 Jun 2004 13:17:02 +0000
Subject: note 19600 deleted from function.substr by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-71762@lists.php.net to get a copy of this message
Note Submitter: r.fleming@clara.net ---- In response to the person needing a substr_index function to return the 1st x words in a string, why not just explode the string using a space as the string separator? The first x words are now the first x entries in the returned array.

« previous php.notes (#71762) next »