Results 1 to 2 of 2

Thread: string comparison

  1. #1
    Join Date
    Sep 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile string comparison

    hi

    i am writing a small application where a user enters a phrase in the textfield and i would like to display all the files present in the root directory which consists of the keyword or keywords entered by the user.

    i have used a few comparison functions but i am not getting the expected result.

    $my_file = file_get_contents("filename.html");
    what ever the user enters whether it is a single word or few words i would like to compare with $my_file in a case insensitive manner.

    can anyone suggest the best method and how to go about.

    thanks.

    ___________________________
    baby gift Audi A4 Ignition Coil
    Last edited by susapra; 09-23-2008 at 04:32 PM.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •