Javascript для PHP функции: empty


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function empty( mixed_var ) {
  2. return ( mixed_var === "" || mixed_var === 0 || mixed_var === "0" || mixed_var === null || mixed_var === false || ( is_array(mixed_var) && mixed_var.length === 0 ) );
  3. }

URL: http://javascript.ru/php/empty

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.