NYCPHP Meetup

NYPHP.org

[nycphp-talk] strpos with space

Brian O'Connor gatzby3jr at gmail.com
Mon Jul 25 23:56:02 EDT 2005


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?

On 7/25/05, Cassidy, Michael <Michael_Cassidy at advancemags.com> wrote:
> 
> 
> 
> 
> <?php
> 
> $temp= "The Word of the Famous TurkeyFace. The Word of the very Famous
> TurkeyFace with the blue nose and green toes.";
> 
> 
> $end= substr_count($temp, " ") . "<br />";
> 
> echo $end;
> 
> $character= 0;
> 
> 
> while (($count < 10) && ($character < 109)) {
> 
> echo substr($temp, $character, 1);
> 
> if (substr($temp, $character, 1) == " ") {
> $count= $count+1;
> }
> 
> $character= $character+1;
> 
> }
> ?>
> 
> _______________________________________________
> New York PHP Talk Mailing List
> AMP Technology
> Supporting Apache, MySQL and PHP
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.nyphp.org
> 



-- 
Brian O'Connor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20050725/30f36822/attachment.html>


More information about the talk mailing list