Results 1 to 12 of 12

Thread: [RESOLVED] Extract values from string

Threaded View

  1. #1

    Thread Starter
    Fanatic Member snufse's Avatar
    Join Date
    Jul 2004
    Location
    Jupiter, FL
    Posts
    912

    Resolved [RESOLVED] Extract values from string

    Have following string:

    PHP Code:
    Feed.SmulocV2.Equipment,CAT,,DFT08783,2567,Hours,2010-02-07 06:37:41,Lat:35.10495,Lng:-82.99304 
    The string will always have text "Lat:" and "Lng:". The value of Lat and Lng could in some cases be nothing.

    Now I need to extract the values for Lat and Lng. Any good way of doing this? Thank you.
    Last edited by snufse; Mar 8th, 2010 at 09:44 AM.

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