<?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 :
$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 )
print_r($num) : Array ( [0] => 10 [1] => 20 [2] => 30 )