Created
December 8, 2019 14:52
-
-
Save alicanatas/80601cf33074761151490a9a38d49375 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function make_json($param) { | |
$array = array(); | |
if(sizeof($param) > 0){ | |
foreach ($param as $row) { | |
if ($row != "") { | |
array_push($array, $row); | |
} | |
} | |
} | |
return json_encode($array); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment