Deserialisation in PHP

------------------------------

//Json Encode Any Object --->Json Object

//PHP ARRAY ---->JSON_ARRAY

//Example :[10,20,30]--->[10,20,30]

//          array(10,20,30)---->[10,20,30]


//PHP ASSOCIATIVE : Key and values---> JSON_Object

// MULTI_DIMENSIONAL ARRAY ----> Array_Objects


#Exit is language Construct so you can use without parenthesis

#print_r for debugging means printing in a Formatted way

#vardump : Used to Perform Postmartum of a variable : Datatype and Its value with no. of character in its data value but thing is it should be string type

#var_dump can be used to print boolean false which echo, print,print_r no one can be print

#var_dump is not a language construct: parenthesis are mendatory

#var_dump: can be used to print objects

#difference B/w var_dump and var_export

#var_export is same as var_dump but in print outs the output in a structure Manner or valid php code




//Developers Approach

// How to validate Json_string http://jsonviewer.stack.hu/ Paste the code and Try to parse if any error it will tell.

// In Json Viewer ..Iterable


//classical way


// $student_1 = $json_arr[0];

// $student_2 = $json_arr[1];

// $student_3 = $json_arr[2];

// $student_4 = $json_arr[3];


// echo "student Information 1:<hr/>;

// echo "student Name : {$student_1->name} <br/>";

// echo "student Class : {$student_1->class} <br/>";

// echo "student Passed : {$student_1->passed} <br/>";

// echo "student Marks : {$student_1->marks} <br/>";