I have a PHP array which has some values that am storing to an API,, I want to show the field that has a value and omit the others but aint sure how to write the logic in PHP,,
~ Kindly assist?
array:5 [
"child1Dob" => "2018-11-07",
"child2Dob" => null,
"child3Dob" => null,
"child4Dob" => null,
"child5Dob" => null,
]