i'm still totally noob to php and im workin on it.. i've been trying to figure out arrays
PHP Code:
<?php $ages = array("Aubri"=>5, "Logan"=>3, "Chris"=>15, "Travis"=>0); echo "Aubri is" . $ages['Aubri'] . ", Logan is" . $ages['Logan'] . ", Chris is"$ages['Chris'] . " " . "and Travis is" . $ages['Travis']; ?>
I figured that would work.. why isn't it? i get an error for the line with echo on it
it should say
Aubri is 5, Logan is 3, Chris is 15, and Travis is 0
|