Change array structure in PHP

nemesismcy

New Member
Refers to my previous question : Show values in TDropDownList in PRADo_Ok fine the array i receive from query is an object array like :\[code\]ContactRecord Object ( [id] => 1 [name] => leo [_recordState:protected] => 1 [_connection:protected] => [_invalidFinderResult:protected] => [_e:TComponent:private] => Array ( ) )ContactRecord Object ( [id] => 2 [name] => ganda [_recordState:protected] => 1 [_connection:protected] => [_invalidFinderResult:protected] => [_e:TComponent:private] => Array ( ) ) \[/code\]If I convert it in to array like:\[code\]Array ( [key 1] => leo [key 2] => ganda )\[/code\]then I can populate values into TDropDownList.Now can anyone help me to convert array structure which I need ... ?Again thanks
 
Top