Re: Operations on a string?
| From: | Michael Virnstein | Date: | Sat, 18 May 2002 03:37:05 +0000 |
| Subject: | Re: Operations on a string? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-19246@lists.php.net to get a copy of this message | ||
MessagePlease change your email settings to plain text, not html.
I'd suggest using PCRE (http://www.php.net/manual/en/ref.pcre.php).
Regards Michael
"Chris Payne" <chris@planetoxygene.com> schrieb im Newsbeitrag
news:000001c1fe01$0f020ea0$f7fea8c0@chris...
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