A simple small topic, how to solve

Source: Internet
Author: User
Tags php framework
A simple little topic
Fill in the blanks and output Hello world.
Have not done before, have so narrow the meaning, the method is also many.
Now think of the short answer there are 14, I do not know whether it can be more simple ha
Guys, play.


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--------------------
Explore

#1呵呵, there is no other good way to pull

if (Die (' Hello World '))
if (1) echo ' Hello '; if (0)

------Solution--------------------
discuss

PHP Code
if (!print (' Hello ')) {
echo "Hello";
}else{
echo "World";
}
The landlord thought of this is not it hehe ~

------Solution--------------------
Idle

I have a suggestion, moderators should collect each PHP fan PHP framework, specifically a post, detailed description of the specific use of the method features

Efficiency development approach. Wait, wait.
------Solution--------------------
Oh, like SQL injection ah, educated, indeed
------Solution--------------------
Landlord well paid, I also think of ~ ~
------Solution--------------------
Explore

Just fill in 1) echo ' Hello '; if (0 ah

Final code
if (1) echo ' Hello '; if (0)
{
echo "Hello";
}else{
echo "World";
}


The same output as Hello world.

Reference:

Reference:

#1呵呵, there is no other good way to pull

if (Die (' hel ...
  • 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.