@mohaligateway
@hesammousavi
@AliValinejad
@eniack
@mhyeganeh
@ali.bayat
من میخوام در این کد جسون خانه دوم(tostation) رو بخونم
"{"id":485207,"source":"safir","from_station":191,"to_station":1}"@ftp
سلام ، اگر منظور شما خواندن مقدار to_station هست از کد زیر استفاده کنید :
$array = '{"id":485207,"source":"safir","from_station":191,"to_station":1}';
$array = json_decode($array);
foreach($array as $key => $value) {
echo "this is key =>" .$key . ' "this is value =>"' . $value ."\n";
}