PHP - simple array to multiple array : I have an array with contry list like this


    $array = array('country1' => CountryOne, 'country2' => Country Two);

How i can transform this array in a multiple array like:

    array(2) {
    [0] =>
    array(2) {
    ["code"] => "country1",["name"] => "CountryOne"}
    [1] =>
    array(2) {
    ["code"] => "country2",["name"] => "CountryTwo"}
    }}