NYCPHP Meetup

NYPHP.org

[nycphp-talk] strpos with space

Cassidy, Michael Michael_Cassidy at advancemags.com
Tue Jul 26 09:10:21 EDT 2005


Here¹s another, a modification off of en example on the PHP WWW page:

$temp= "The Word of the Famous TurkeyFace. The Word of the very Famous
TurkeyFace with the blue nose and green toes.";

$temp2= strtok($temp, " ");
while (($temp2 !==false) && ($countB < 6)) {
echo "$temp2 ";
$temp2= strtok(" ");
$countB++;
}


I deleted your original email so I was trying to find what function didn¹t
see the space.
I haven¹t found it yet; though now I at least know what strtok does.


From: Brian O'Connor <gatzby3jr at gmail.com>
Reply-To: NYPHP Talk <talk at lists.nyphp.org>
Date: Mon, 25 Jul 2005 23:56:02 -0400
To: NYPHP Talk <talk at lists.nyphp.org>
Subject: Re: [nycphp-talk] strpos with space

Thanks for the function.

I'm still curious though, how come the space doesn't work with the function,
is it bugged or was it intentional?

_______________________________________________
New York PHP Talk Mailing List
AMP Technology
Supporting Apache, MySQL and PHP
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20050726/0461620b/attachment.html>


More information about the talk mailing list