Search This Blog

print_r() in php

<?php

$num=array(10,20,30);
echo '<strong>echo $num[0]</strong>   :   '.$num[0].'<br>';
echo '<strong>print_r($num) </strong>    :    ';
print_r($num);


?>

output :


echo $num[0] : 10
print_r($num) : Array ( [0] => 10 [1] => 20 [2] => 30 )

Share Links

Related Posts Plugin for WordPress, Blogger...