Learn PHP Variable, constant, array, associative array, multidimentional array, function

Pubblicato il: 08 settembre 2017
sul canale di: Shagor blogs
632
5

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.


In questa pagina del sito puoi guardare il video online Learn PHP Variable, constant, array, associative array, multidimentional array, function della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Shagor blogs 08 settembre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 632 volte e gli è piaciuto 5 spettatori. Buona visione!