Empty function transformation?

Source: Internet
Author: User
Is it empty function transformation from php manual php. netmanualhfunction. empty. php? If php is empty, you can determine whether the multi-dimensional array defaults to 0. if the value is not null $ type1, 0 indicates null functionis_empty ($ multiarray, $ type) {if (is_array ($ multiarray) and! Empty ($ multiarray) {$ tmp

Is it empty function transformation to function comes from php manual http://php.net/manual/zh/function.empty.php none? Php // if it is null, you can determine whether the multi-dimensional array defaults to 0. When the value is not null $ type = 1, 0 considers the function is_empty ($ multiarray, $ type = '') {if (is_array ($ multiarray) and! Empty ($ multiarray) {$ tmp

Whether it is empty function transformation to function comes from php manual http://php.net/manual/zh/function.empty.php <无>
  '', 1 =>" ", 2 => null, 3 => array (), 4 => array ()), 5 => array (), 6 => array (), array (), array (), 7 => array (), array (), 8 => array (null), 9 => not empty ', 10 => "not empty ", 11 => array ("not empty"), 12 => array (), array ("not empty"), array ())), 12 => '0'); foreach ($ testCase as $ key => $ case) {echo "$ key is_empty = ". is_empty ($ case )."
";} Foreach ($ testCase as $ key => $ case) {echo" $ key is_empty = ". is_blank ($ case )."
";}?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.