Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $file = array();
- $file[0] = 0;
- $file[1] = "VietNam";
- $file[2] = "";
- $file = array_map(function($v) { if ($v == 0 || $v == "") {return "NULL";} return $v;}, $file);
- /* result
- $file[0] = "NULL";
- $file[1] = "VietNam";
- $file[2] = "NULL";
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement