Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

json encode decode php

$json = '{"a":1,"b":2,"c":3}';
var_dump(json_decode($json)); //converts json to array

$array = [ "a" => 1, "b" => 2, "c" => 3];
echo json_encode($json_encode($json)); //converts array to json
Source by www.lephpfacile.com #
 
PREVIOUS NEXT
Tagged: #json #encode #decode #php
ADD COMMENT
Topic
Name
3+1 =