Answers for "json decode more complex json php"

PHP
0

json_decode php multidimensional array

{"Isp":[{"id":1,"Name":"gmail","list_name":"vl_leanding","path":"gmail\/vl_leanding.txt","created_at":"2020-12-05T16:58:20.000000Z","updated_at":"2020-12-05T16:58:20.000000Z"}],"Offre":{}}
Posted by: Guest on December-05-2020
-1

php try json decode and check

// Checks if json
function isJson($string) {
   json_decode($string);
   return json_last_error() === JSON_ERROR_NONE;
}

// example
if (isJson($string) {
  // Do your stuff here
}
Posted by: Guest on July-30-2021

Browse Popular Code Answers by Language