Thanks for watching! Check out my other tutorials at: https://www.youtube.com/user/madhurbhatia89?feature=guide.
Original source
Thanks for watching! Check out my other tutorials at: https://www.youtube.com/user/madhurbhatia89?feature=guide.
Original source
10 responses to “PHP & MySQL Tutorial – 13: Arrays”
<?php
$arr=array(15,10,85.78,"Jim","Peter");
echo $arr[3]; echo "<br />";
echo $arr[0]; echo "<br />";
$arr[1]=25;
echo $arr[1]; echo "<br />";
print_r($arr); echo "<br />";
$myarray=array(8,10,15, array(19,23,28,30));
//$myarr=(8,10,15,(19,23,28,30));
echo $myarray[3][1]; echo "<br />";
print_r($myarray);
?>
line 13 it is false $myarr=[8,10,15,[19,23,28,30]];
change this
$myarray=array(8,10,15, array(19,23,28,30));
is this video recorded on fast forward or what, cause you are talking very fast!!!
Whts the use of array inside array?
I made an array in an array within an array thats in an array which is in another array and thats in an array and thats in an array. Captain this
change this
$myarray=array(8,10,15, array(19,23,28,30));
instead of
$myarray=array[8,10,15, [19,23,28,30]];
on line number 13.
ERROR IN LINE 13
(y)
hi,
For line 12 I get an error message saying " Notice: Array to string conversion in C:wampwwwLearningArrays.php on line 12"
on my note++, line 11 I have :
$my=[0,1,2,3,[4,5]];
and line 12:
echo$my[4],[1];
I want it to display '5'
Thanks for the help.
Good tutorials bro…..keep it up…(y)