foxfirediego
11-05-2007, 07:52 PM
Ok I have the following array:
$names = array("Venore", "Folda", "Dame");
And I can print like this:
$names[0]; -> return Venore
$names[1]; -> return Folda
$names[2]; -> return Dame
but, what if I want to use:
$names[Venore]; -> return 0
$names[Folda]; -> return 1
$names[Dame]; -> return 2
thanks
$names = array("Venore", "Folda", "Dame");
And I can print like this:
$names[0]; -> return Venore
$names[1]; -> return Folda
$names[2]; -> return Dame
but, what if I want to use:
$names[Venore]; -> return 0
$names[Folda]; -> return 1
$names[Dame]; -> return 2
thanks