Php bir dizi oluşturma hakkında

0 Cevap php

I am having trouble at creating a specific array. What i want is to pull the info for my members (from mysql database) and then store them to an array. The array should be like this:

$members = array(
'John' => array('avatar' => '/images/avatar/ji.jpg', 'country' => 'uk.'),
'Nick' => array('avatar' => '/images/avatar/nick.jpg', 'country' => 'italy.'),
);

etc.. so i pull the name,avatar url and country from the db and then i store them in to the previous array. My question is, how could i create this array?

Şimdiden teşekkürler!

Php bir dizi oluşturma hakkında.

0 Cevap