Php Get Each Name Of Element In An Array
- Forums
- 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 [1426], Last Updated: Mon Jun 24, 2024
Sterler
Mon Nov 28, 2011
0 Comments
551 Visits
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:
<?php
$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
help