0👍
i donn’t know i am not sure about your question
$testArray = array(
"2017-07-03" => array("male" : "0","female" => "10"),
"2017-07-04" => array("male" : "0","female" => "0")
);
return $testArray;
Source:stackexchange.com