View Single Post
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 07-24-2006 , 21:15   Re: Sockets and webservers
Reply With Quote #6

Quote:
Originally Posted by Zenith77
Ok so, this string

(C style return chars)
Code:
"NAME: w00t\r VALUE: Hello World"

would be ("exploded")

Code:
new var[2][50] var[0] = "NAME: w00t"; var[1] = "VALUE: Hello World";

Yes, basicly it breaks down:
Code:
line #1
line #2
line #3
to
Code:
new lines[3][100]
lines[0] == "line #1"
lines[1] == "line #2"
lines[2] == "line #3"
etc... The function returns number of "new" variables inserted to the array.

It basicly works like php's "explode" function: http://is2.php.net/explode
__________________
DarkSnow is offline
Send a message via MSN to DarkSnow