Re: PHP Tokenize a String by its length
- From: Geoff Berrow <blthecat@xxxxxxxxxxx>
- Date: Sat, 31 Dec 2005 15:18:31 +0000
Message-ID: <ZFwtf.636$i%4.91@trndny08> from Lüpher Cypher contained the
following:
>Actually:
>
>$str = "aaa bbb ccc";
>$str = substr($str,0,9);
>echo strrpos($str," ");
ah yes, missed the double space...
>
>
>Outputs 8 :) There is a mistake, though:
I knew something was wrong. :-)
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
.
- References:
- PHP Tokenize a String by its length
- From: Mavenos
- Re: PHP Tokenize a String by its length
- From: Geoff Berrow
- Re: PHP Tokenize a String by its length
- From: Lüpher Cypher
- Re: PHP Tokenize a String by its length
- From: Geoff Berrow
- Re: PHP Tokenize a String by its length
- From: Lüpher Cypher
- Re: PHP Tokenize a String by its length
- From: Geoff Berrow
- Re: PHP Tokenize a String by its length
- From: Lüpher Cypher
- PHP Tokenize a String by its length
- Prev by Date: Re: Newbie - Redirect to do processing
- Next by Date: Re: Message box
- Previous by thread: Re: PHP Tokenize a String by its length
- Next by thread: Re: PHP Tokenize a String by its length
- Index(es):
Relevant Pages
|