一道简单的小题目,该如何解决

WBOY
Release: 2016-06-13 13:27:03
Original
893 people have browsed it

一道简单的小题目
填空题,输出hello world.
之前没做过,有那么眯眯意思,方法也很多。
目前想到的是短答案有14位,不知还能不能再简些哈
各位玩玩


if(_____){
  echo "hello ";
}else{
  echo "world.";
}

------解决方案--------------------

PHP code
if(!print('hello ')){
  echo "hello ";
}else{
  echo "world.";
}
<br><font color="#e78608">------解决方案--------------------</font><br>
Copy after login
PHP code

if(true){
     echo "hello";
}
else{
     echo "world";
}
<br><font color="#e78608">------解决方案--------------------</font><br>
Copy after login
探讨

#1呵呵,估计没什么其它好方法拉

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

------解决方案--------------------
探讨

PHP code
if(!print('hello ')){
echo "hello ";
}else{
echo "world.";
}
楼主想到的是不是这个呢 呵呵~

------解决方案--------------------
闲,

我有个建议,版主应该收集 每一个php 爱好者的 php框架,专门出一帖,详细阐述具体使用方法 特点

效率 开发方式。。等等等等
------解决方案--------------------
哦,类似于sql注入啊,受教了,确实
------解决方案--------------------
楼主高才,我也想到了~~
------解决方案--------------------
探讨

就是填 1)echo'hello ';if(0 啊

最后代码
if(1)echo'hello ';if(0)
{
echo "hello ";
}else{
echo "world.";
}


同样输出 hello world.了

引用:

引用:

#1呵呵,估计没什么其它好方法拉

if(die('hel……
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!