PHP Classes

File: php/workingWithObject.php

Recommend this page to a friend!
  Classes of bamigboye biodun   Logical Functions   php/workingWithObject.php   Download  
File: php/workingWithObject.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Logical Functions
General-purpose PHP and JavaScript functions
Author: By
Last change:
Date: 8 months ago
Size: 408 bytes


Class file image Download
= json_encode([
'name' => 'Biodun Bamigboye',
'job_title' => 'lead developer'
$userdataAsObject = json_decode($object);
$userdataAsObject->name ;
/* return Value : Biodun Bamigboye */

 //-- To convert it to an array
$userdataAsArray = json_decode($object,true);
$userdataAsArray['name'] ;
/* return Value : Biodun Bamigboye */

Author : Biodun Bamigboye