#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    53
    Rep Power
    15
    How does PHP compare strings?? I wanna detect wether a person has inputed any html in a particular message and replace it with some other stuff... how would i do that?? How would I look throught the string in this way?

    Thanx
  2. #2
  3. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    17
    $myString = strip_tags($myString);
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    53
    Rep Power
    15
    Could you explain this please?? I am a newbie to PHP
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Pune, Maharashtra, India
    Posts
    86
    Rep Power
    14
    One of the functions given with PHP is strip_tags function.This function tries to strip all HTML and PHP tags from the given string.
    Nikunj (India)

Similar Threads

  1. Proglem with comparing strings in C++
    By like_duh44 in forum C Programming
    Replies: 6
    Last Post: January 21st, 2004, 08:53 PM
  2. comparing strings
    By chatnoir in forum Software Design
    Replies: 1
    Last Post: December 11th, 2003, 02:39 AM
  3. comparing strings
    By batih85 in forum C Programming
    Replies: 4
    Last Post: November 28th, 2003, 11:18 AM
  4. Replies: 3
    Last Post: August 11th, 2003, 11:19 AM
  5. Comparing 2 strings in lowercase?
    By DeNasio in forum PHP Development
    Replies: 3
    Last Post: September 2nd, 2001, 10:23 AM

IMN logo majestic logo threadwatch logo seochat tools logo