Results 1 to 4 of 4

Thread: help with string functions

  1. #1
    Join Date
    Mar 2007
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help with string functions

    hi,
    i have a huge string in which many words are repeated. i want to find all the positions of a particular word and then echo from the position to end of line.can you please help me do this.

    eg:
    $text= name: sukanya
    age= 25
    city= bangalore
    company name= xyz

    now when i search with name i want the positon of both the names and i want to type
    name= sukanya &
    name= xyz

    thanks in advance,
    Suk

  2. #2
    Join Date
    Dec 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    Sounds liek you really need to load your data into a database, then it should be easy to retrieve the information you want.

  3. #3
    Join Date
    Mar 2007
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi,
    i wish it was that simple. the string comes from a word document. i basically have to parse word documents and retrieve information from there. am not allowed to use COM so have to do it with fread.
    not a very easy task. i have managed to asign the word doc content as a string and also managed to remove most of the special characters those get displayed in the browser(except table tags- help will be appreciated here too).
    but then rest is where i am stuck.
    can someone show me the right direction?
    Thanks,
    Suk

  4. #4
    Join Date
    Apr 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You can do it very easily using PHP


    Try this page

    http://www.zortin.com/scripts/show/?id=41

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
  •