My table contains columns with null values. But when I try to get the data set to a variable, the data array is deleted if the column is null or empty.
lets say i have 4 columns
[cid] => 357 [smcoordinator] => [title] => Null [cname] => Maddox Adam Portland
And my function
function getValue($data){ $dataset = $data['dataset']['result_set']; print_r($dataset); //somecode... }
resut in print_r
[cid] => 357 [smcoordinator] => [cname] => Maddox Adam Portland
How can I get a null column in my dataset?
source share