Multi dimensional array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How do I correctly make "category_assignment" into a multi dimensional array:

if(is_array($result) &&count($result) >'0') {
    foreach($resultAS$value) {
        $array= [
            'reference'=>$value['reference'],
            'introductory_paragraph'=>$value['introductoryParagraph'],
            'category_assignment'=>array[][$value['category'] =>$value['categoryLink'] ]
        ];
    }
}

Ron


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux