2 dimensional array PHP

Humberd

I'm pretty new to php and I have problem with 2 dimentional array. When I try to do this:

$tab[0][0] = "dupa0";
$tab[0][1] = "dupa1";
echo("$tab[0][0]");

It doesn't work. How can I print a single element from this array?

taxicala

you have to remove the quotes:

echo($tab[0][0]);

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related