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!

newbie question

Status
Not open for further replies.

safra

Technical User
Jan 24, 2001
319
NL
Hi,

just starting with php!

I am trying to split the value of a cookie into an array but can's find the right syntax. Either it prints "array" or I get the error message: Parse error: parse error, expecting `'('' " in.......?

$one = array split("~~",$HTTP_COOKIE_VARS["prefList"]);

Can aynone tell me the correct syntax in php?

thanks,
safra
 
sorry! Apparantly I used the wrong syntax to print the complete array. printing array elements works!

Ron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top