For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > September 2006 > get data into an array









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author get data into an array
Sam

2006-09-26, 6:57 pm

hi all,

how can i take this data and create an array? i have no idea where to
start.

thanks in advance.

"STEAM_0_1_9791900"
{
"Freq" "3"
"Count" "3"
"1" "something"
"Namefreq" "3"
"2" "something else"
"3" "anything"
}

macca

2006-09-26, 9:57 pm

$arr = array("Freq" => 3, "Count" => 3);


echo $arr["Freq"]; // 3
echo $arr["Count"]; // 3

and so on...

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com