PHP Tutorial - Indexed Array, Associative Array, Mutidimensional Array(PHP For Beginners)

Published: 07 January 2015
on channel: Julfi Tutorials
1,237
3

In this tutorial you will learn Array (Indexed Arrays, Associative Array and Multidimensional Array) in php.

1. We know that a variable can hold only one value at a time, But array variables can hold multiple values at a time.

2. To create an array in php array() function is used. Declaring an indexed array is so simple, and you declare array in two ways.

Array Declaration :

$name = array("Whisky", "Scotch", "Wine", "vodka");

OR

$name[0] = "Whiky";
$name[1] = "Scotch";
$name[2] = "Wine";
$name[3] = "Vodka";

3. You can view the output of an array by statement echo, print_r() function and var_dump() function.

For more information, check out the website:
http://tut.julfi.com/category/php/

You can follow us on facebook:
  / 360969907396820  

Follow us on google+:
https://plus.google.com/1072194777499...

Follow us on Twitter:
  / julfitut  


On this page of the site you can watch the video online PHP Tutorial - Indexed Array, Associative Array, Mutidimensional Array(PHP For Beginners) with a duration of hours minute second in good quality, which was uploaded by the user Julfi Tutorials 07 January 2015, share the link with friends and acquaintances, this video has already been watched 1,237 times on youtube and it was liked by 3 viewers. Enjoy your viewing!