array problem :(

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
milleusi
Forum Commoner
Posts: 30
Joined: Mon Jun 13, 2005 3:18 am

array problem :(

Post by milleusi »

i have a code wich generates an array like this:
$dinamic_array_generated['diferent_proprieties_each_time'];

how can I get 'diferent_proprieties_each_time' ??

i think is verry easy but i'm stuck now:((
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

not sure exactkly what you mean but I think you need

Code: Select all

foreach ($dinamic_array_generated as $newvar => $value) {
   echo $newvar .': '.$value;
}
Post Reply