Error understanding of the PHP empty () function

Source: Internet
Author: User

An error occurred yesterday in using the PHP empty () function

Can ' t use function return value in write context

The first project in the local is good, my local configuration is php5.6+apace after the project moved to the server (the server configuration is iss+php5.4) there is such a problem, after I asked a friend only to know that this is because php5.6 the following empty () Functions are not allowed to pass variables, as the parameter values in my project are scalar

So there was this problem.

Write for the first time, just record the problem and the solution.

Insights!!!

Error understanding of the PHP empty () function

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.