A problem that makes people want to break their heads.

Source: Internet
Author: User
A problem that makes people want to break their heads.
$numo = "";
(($bqno%1==0) $numo ==1: ($bqno%2==0))? $numo ==2: ($bqno%3==0))? $numo ==3:false;
Echo $numo;
With a three-mesh operation, repeated checks, no grammatical errors, but why can not be called out?
------to solve the idea----------------------
You have other places of assignment besides $numo= "";
------to solve the idea----------------------
First of all, your assignment to $numo is only the first sentence of $numo= '; $numo of course is empty ah;
The trinocular operator does not assign the result to any variable here. It doesn't really matter what the output is.
------to solve the idea----------------------
Because there is no assignment at all in your code
------to solve the idea----------------------
The landlord's temper is too big. Let's say I replied. Don't scold me.
You're not going to have a result.
Let's take a look at this $bquno%1==0, this is true. Then this lump, three wood operation, Operation finished, but with $numo no relationship ah, no assignment, is wrong, looked at, understand the $bqno and $numo relationship.
The summary is that there is no assignment to $numo at all.
After not reply. So goodbye
  • Related Article

    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.