Wednesday 11 June 2014

Print_r() in PHP


Print_r() in PHP

The print_r() PHP function is used to return an array in a human readable form. It is simple written as print_r($yourname).

Example:

$array = array('chand'=> "good",'jigu'=>"also good");

Output:

Array( [chand] => good [jigu]=> also good)

No comments: