Results 1 to 4 of 4

Thread: String Searching

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2002
    Location
    Dallas, Texas
    Posts
    62

    String Searching

    how do i search for a word within a string in PHP like the vb function INSTR?

    oOBlackOrbOo

  2. #2
    Lively Member DJ P@CkMaN's Avatar
    Join Date
    Jan 2002
    Location
    Burpengary, Queensland, Australia
    Posts
    95
    There's something I've noticed in the last year or so...
    Australian's are good at EVERYTHING !!!

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2002
    Location
    Dallas, Texas
    Posts
    62
    i need it to return the number of characters to the string i am searching for.. i tried strstr but i dont think it returns the ammount of characters it is.. I need to do that so i can use the substr function to split the string after i find all the places..


    oOBlackOrbOo

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by oOBlackOrbOo
    i need it to return the number of characters to the string i am searching for.. i tried strstr but i dont think it returns the ammount of characters it is.. I need to do that so i can use the substr function to split the string after i find all the places..
    strpos()

    Notice pattern developing?
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

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



Click Here to Expand Forum to Full Width