Jump to content


Photo

Parse string


  • Please log in to reply
2 replies to this topic

#1 greenba

greenba
  • Members
  • PipPipPip
  • Advanced Member
  • 31 posts
  • LocationBosnia and Herzegovina

Posted 16 July 2006 - 08:59 AM

Hi,

I have the following string: "01.02.03"

what I need is to parse it so I can have that
$s1 = 01
$s2 = 02
$s3 = 03

Adnan

#2 Joe Haley

Joe Haley
  • Members
  • PipPipPip
  • Advanced Member
  • 103 posts
  • LocationCanada, eh?

Posted 16 July 2006 - 09:00 AM

http://ca.php.net/ma...ion.explode.php

explode() is your friend.
Give a man a fish; you have fed him for today.  Teach a man to fish; and you have fed him for a lifetime
Don't teach men to program. Teach them to fish.

Please, try the RTFM solution before asking for help:
http://php.net/manual/en/index.php

#3 greenba

greenba
  • Members
  • PipPipPip
  • Advanced Member
  • 31 posts
  • LocationBosnia and Herzegovina

Posted 16 July 2006 - 09:02 AM

thanx joehaley




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users