| View previous topic :: View next topic |
| Author |
Message |
leon_pegg
Joined: 12 Jun 2006 Posts: 113 Location: hemel / UK
|
Posted: Fri Jul 21, 2006 6:51 pm Post subject: text |
|
|
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
|
Posted: Fri Jul 21, 2006 7:38 pm Post subject: |
|
|
| 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
|
Posted: Fri Jul 21, 2006 7:43 pm Post subject: |
|
|
| thanks. |
|
| Back to top |
|
 |
|