Operations on a string?
| From: | Chris Payne | Date: | Sat, 18 May 2002 00:15:03 +0000 |
| Subject: | Operations on a string? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-19244@lists.php.net to get a copy of this message | ||
Hi there everyone,
Say I have a string which reads "<html->12345</html>", how can I search
that string and do an operation on each word?
What I would like to do is check code before it is inserted into a db,
and have a pre-defined list of HTML/PHP syntax already written, it would
look at <html-> and compare it to the db with the syntax I have written,
and ask if I meant <html> instead?
Any ideas?
Thanks everyone, and may the force be with you (LOL, sorry I couldn't
resist that :-)
Chris