Php json decode array example
Php json decode array example
Php json decode array example
$json = '["apple","orange","banana","mango"]'; $array = json_decode($json); foreach($array as $item){ echo $item."<br>"; }
which will produce the following result;
// apple
// orange
// banana
// mango
Advertisements
Add Comment
📖 Read More
- 1. Php 5 String Functions Reference
- 2. PHP htmlentities function
- 3. PHP script to detect mobile devices
- 4. Php export data from mysql to excel