Php Get Each Name Of Element In An Array
- Linux Hosting
- Php Get Each Name Of Element In An Array
looking to find out how i can get the name of an element in an array using php programming , Last Updated: Sun Jul 05, 2020
Mon Nov 28, 2011
hi, i need some help and you guys maybe can help me.
i want to know how i can get the name of an element in an array.
for example, if i have this array:
$foo['Color] = 'red';
$foo['Size] = 'small';
ok, how can i get the name of $foo['Color'] into a string so i can display it like this:
the Color is red