Re: formatting form information
| From: | Daniel Convissor | Date: | Fri, 04 Aug 2000 23:32:57 +0000 |
| Subject: | Re: formatting form information | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10216@lists.php.net to get a copy of this message | ||
Hi Craig:
Craig Henderson wrote:
>
> is they will charge a different value. So I was thinking I could just use
> the explode() function to split apart the words and then count the number of
> elements in the array. However can explode() work with the space character?
Try it. Write a quick test script, see what happens. By the way, you'll
find it works and you can also use split().
Hmm, out of curiosity, anyone know which is better/faster/whatever? Or
should I write a benchmark script and post the findings? Or, look in the
mailing list archives....
http://marc.theaimsgroup.com/?l=php-general&m=95234884508191&w=2
Talks about the differences in what they do (matching via string v regular
expression).
DING!
http://marc.theaimsgroup.com/?l=php-general&m=93815450714215&w=2
Says, explode is faster since it doesn't do full regular expressions.
Hack and enjoy!
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
More than just answers. Solutions. (SM)
http://www.analysisandsolutions.com/
4015 7 Av #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409