<?php$arr=array('text',0,'Just some || text in here','right');$json_encoded=json_encode($arr);echo"Encoded array: $json_encoded\n\n";$json_decoded=json_decode($json_encoded);echo"Decoded array:\n";print_r($json_decoded);?>
Encoded array: ["text",0,"Just some || text in here","right"]
Decoded array:
Array
(
[0] => text
[1] => 0
[2] => Just some || text in here
[3] => right
)