Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sscanf()

Status
Not open for further replies.

BlindPete

Programmer
Jul 5, 2000
711
US
Hello all,

I have a string
$cText "Hello world wide web."

I want to parse it into an array such that
$cParsedText[0] = "Hello"
$cParsedText[0] = "world"
$cParsedText[0] = "wide"
$cParsedText[0] = "web."

can I use the sscanf to do this? or explode?
-Pete[noevil]
 
Yes, you could use either of those, as well as split() or preg_split(). ______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top