How to solve a simple small question

Source: Internet
Author: User
A simple small question fills in blank questions, and outputs helloworld. I have never done it before. There are many ways to narrow down the question. At present, I think there are 14 short answers. I wonder if you can make it simpler. if (_____) {& nbsp; echo & quot; hello & quot ;;} else {& nbsp; e a simple small question
Fill in the blank question and output hello world.
I have never done it before, and there are many ways to narrow down.
I have 14 short answers. I wonder if I can make it simpler.
You and Me


If (_____){
Echo "hello ";
} Else {
Echo "world .";
}

------ Solution --------------------
PHP code
If (! Print ('Hello') {echo "hello";} else {echo "world .";}
------ Solution --------------------
PHP code
If (true) {echo "hello";} else {echo "world ";}
------ Solution --------------------
Discussion

#1 haha, it is estimated that there are no other good guys Farah

If (die ('Hello world .'))
If (1) echo 'hello'; if (0)

------ Solution --------------------
Discussion

PHP code
If (! Print ('Hello ')){
Echo "hello ";
} Else {
Echo "world .";
}
Is that what the landlord thinks ~

------ Solution --------------------
Idle,

I have a suggestion that the moderator should collect the php framework of every php enthusiast and post it to elaborate on the specific usage features.

Efficiency development method .. And so on.
------ Solution --------------------
Oh, it's similar to SQL injection. I'm taught. it's true.
------ Solution --------------------
Gao Cai, the landlord, I also thought ~~
------ Solution --------------------
Discussion

1) echo 'hello'; if (0

Final code
If (1) echo 'hello'; if (0)
{
Echo "hello ";
} Else {
Echo "world .";
}


Hello world.

Reference:

Reference:

#1 haha, it is estimated that there are no other good guys Farah

If (die ('El ......

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.