Connecting Tech Pros Worldwide Help | Site Map

reverse search string function

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 12:15 AM
Chris Widmer
Guest
 
Posts: n/a
Default reverse search string function

hello,

i was looking for a function that easily searches a sting backwards -
just like stripos but reversed. is there already one part of php or does
anyone have a nice function written?

thanks,
Chris


  #2  
Old July 17th, 2005, 12:15 AM
Jørn-Inge Kristiansen
Guest
 
Posts: n/a
Default Re: reverse search string function

stripos(strrev($string), strrev($needle);

"Chris Widmer" <pogo@gibts.net> wrote in message
news:bl8qeu$fji$3@newsserv.zdv.uni-tuebingen.de...[color=blue]
> hello,
>
> i was looking for a function that easily searches a sting backwards -
> just like stripos but reversed. is there already one part of php or does
> anyone have a nice function written?
>
> thanks,
> Chris
>[/color]


  #3  
Old July 17th, 2005, 12:16 AM
Jason
Guest
 
Posts: n/a
Default Re: reverse search string function

"Jørn-Inge Kristiansen" <jorninge@stud.ntnu.no> wrote in message
news:bl98i9$29v$1@tyfon.itea.ntnu.no...[color=blue]
> stripos(strrev($string), strrev($needle);
>
> "Chris Widmer" <pogo@gibts.net> wrote in message
> news:bl8qeu$fji$3@newsserv.zdv.uni-tuebingen.de...[color=green]
> > hello,
> >
> > i was looking for a function that easily searches a sting backwards -
> > just like stripos but reversed. is there already one part of php or does
> > anyone have a nice function written?
> >
> > thanks,
> > Chris
> >[/color]
>
>
>[/color]

That's pretty cool :)


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.