PHP Accesing variables within an array
Hello,
Im pretty new to PHP so excuse my dumbness :p I've searched this up in quite a few places and cant find anything : ( Basically, I've made an array, within it are 3 more arrays Their are two values in each array, 'Name' and 'Age' Basically Im using a While statement to try and cycle through the 'age' value of my array and state whether or not the person is eligible. (Im actually just learning so I'm doing this to just test myself) Here is my code Code:
<?php Im using Xammp, so when i launch local host I get an undefined variable error What To Do? |
PHP Code:
|
Quote:
BUT... Sorry, i didnt state this before, how do i refer to the certain persons name? As in, if the person is "elligible" how do i refer to them by name in an echo statement? |
PHP Code:
|
All times are GMT -5. The time now is 04:15 PM. |