Advertisement
Guest User

Untitled

a guest
May 25th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. function tep_not_null($value) {
  2. if (is_array($value)) {
  3. if (sizeof($value) > 0) {
  4. return true;
  5. } else {
  6. return false;
  7. }
  8. } else {
  9. if ( (is_string($value) || is_int($value)) && ($value != '') && ($value != 'NULL') && (strlen(trim($value)) > 0)) {
  10. return true;
  11. } else {
  12. return false;
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement