View Single Post
  #1 (permalink)  
Old December 13th, 2004, 05:32 AM
SiliconFuRy SiliconFuRy is offline
Authorized User
 
Join Date: Oct 2004
Location: Edinburgh, Scotland, United Kingdom.
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to SiliconFuRy
Default Parsing a block of text

Schoochies...

I wanna basically turn a block of text like this...
----------
Name=Smeghead

Age=20

Location=Boeblingen, Germany
----------

Into variables like this...

$name="Smeghead"
$age=20
$location="Boeblingen, Germany"

Any pointers on how to go through a long string like above and parse it for things like above?


Many shoes,

Jamez/SiliconFuRy
__________________
Many shoes,

Jamez/SiliconFuRy
Reply With Quote