private function structureDatasArray($arrayDatas = [], $tableColumns = [])
    {
        foreach ($arrayDatas as $arrayData) {
            $datasArray[$arrayData['pros_id']] = [];

            foreach($tableColumns as $columnKey => $columnValue) {
                foreach ($arrayData as $dataKey => $dataValue) {
                    if ($columnValue == $dataKey) {
                        $datasArray[$arrayData['pros_id']] = $datasArray[$arrayData['pros_id']] + [$dataKey => $dataValue];
                        break;
                    }
                }
            }
        }

        return $datasArray;
    }
private function structureDatasArray($arrayDatas = [], $tableColumns = [])
    {
        foreach ($arrayDatas as $arrayData) {
            $datasArray[$arrayData['pros_id']] = [];

            foreach($tableColumns as $columnKey => $columnValue) {
                foreach ($arrayData as $dataKey => $dataValue) {
                    if ($columnValue == $dataKey) {
                        $datasArray[$arrayData['pros_id']] = $datasArray[$arrayData['pros_id']] + [$dataKey => $dataValue];
                        break;
                    }
                }
            }
        }

        return $datasArray;
    }
private function structureDatasArray ( $ arrayDatas = [ ] , $ tableColumns = [ ] ) { foreach ( $ arrayDatas as $ arrayData ) { $ datasArray [ $ arrayData [ 'pros_id' ] ] = [ ] ; foreach ( $ tableColumns as $ columnKey => $ columnValue ) { foreach ( $ arrayData as $ dataKey => $ dataValue ) { if ( $ columnValue == $ dataKey ) { $ datasArray [ $ arrayData [ 'pros_id' ] ] = $ datasArray [ $ arrayData [ 'pros_id' ] ] + [ $ dataKey => $ dataValue ] ; break ; } } } } return $ datasArray ; }
Returns structured data array
@param Array = params
@param Array = columns
Returns structured data array