Created
December 15, 2016 09:43
-
-
Save tri82wiyono/af0d9d04fdd33e4f9d99b1cf04dc26f0 to your computer and use it in GitHub Desktop.
fungsi set nol
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
<?php | |
/* | |
buat helper sendiri | |
jika data tidak diinput secara otomatis nilai yang masih ke tabel adalah angka 0 | |
*/ | |
function setnol($var){ | |
if (trim($var)==''){ | |
return 0; | |
}else{ | |
return $var; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment