gnope php gtk gui gnope.org  

text

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Fri Jul 21, 2006 6:51 pm    Post subject: text Reply with quote

i know this is not realy a php-gtk question but how could i do this.

i have this text for example

hello (start)name(end) how are you

and i want to read the text between (start) and (end) md5 it the put it back

in the end i would get this text

hello (start)b068931cc450442b63f5b3d276ea4297(end) how are you

any ideas??

TIA leon
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Fri Jul 21, 2006 7:38 pm    Post subject: Reply with quote

search for (start) with strpos, search for end with strpos and substr it.
Back to top
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Fri Jul 21, 2006 7:43 pm    Post subject: Reply with quote

thanks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.