Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3872896
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:58:32+00:00 2026-05-19T21:58:32+00:00

I am new to PHP, and am working on a GPS tracking system. I

  • 0

I am new to PHP, and am working on a GPS tracking system. I have to split the GPS codes to store in MySQL.

7/3/2010 5:38:18 AM Posted <!355801020193357*1*1-1*03/07/10,05:38:27*1144.4633*07921.6860*41.6*N*E*48.9*0.8*20,54,6678;47,ffff;12,ffff*1*1*0*363*0*1*27312*529#>

I want:

7/3/2010
5:38:18 AM 
355801020193357
1144.4633
07921.6860
48.9

How can I parse out those values from my input?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T21:58:32+00:00Added an answer on May 19, 2026 at 9:58 pm

    this code does actually what you would like:

    $posted = "7/3/2010 5:38:18 AM Posted <!355801020193357*1*1-1*03/07/10,05:38:27*1144.4633*07921.6860*41.6*N*E*48.9*0.8*20,54,6678;47,ffff;12,ffff*1*1*0*363*0*1*27312*529#>";
    preg_match("'(.*?)[<]!(.*?)[>]'is",$posted,$n);
    $time = explode(" ",$n[1]);
    echo $time[0]."<br />";
    echo $time[1]." ".$time[2]."<br />";
    $coords = explode("*",$n[2]);
    echo $coords[0]."<br />";
    echo $coords[4]."<br />";
    echo $coords[5]."<br />";
    echo $coords[9]."<br />";
    

    The $coords variable holds the other information too, if needed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a working PHP server. Now I want to use databases (MySQL or
I'm working on a new php project with CodeIgniter and I have few questions
I am working on a comment voting system. I have a page profile_new.php?id=194 That
Hi I'm really new to php/mysql. I'm working on a php/mysql school project with
I am new to PHP and programming in general. I have been working on
I'm new to php and I have a problem. I'm working on a webpage
New to php .I'm working on an old code in which I have to
I am VERY new to PHP, I'm currently working on a service, part which
Currently, I am working on restructuring an existing code base. I'm new to php
Am new to php... I have been battling on my dynamic checkboxes in such

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.