___|  _ \   |  |    |   |_ _|\ \     / ____|
 |     |   |  |  |    |   |  |  \ \   /  __|
 |   | |   | ___ __|  ___ |  |   \ \ /   |
\____|\___/     _|   _|  _|___|   \_/   _____| 

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

论PHP是世界上最好的语言 PHP is the best programming language in the world!

BY: @justyy | CREATED: Sept. 22, 2017, 11:21 a.m. | VOTES: 228 | PAYOUT: $104.09 | [ VOTE ]

[IMAGE: https://steemitimages.com/DQmcm4Jqp99HiWVU2URNBss6rT5mADWXXCNq3TAJXzfWBp3/image.png]
Image Credit: Pixabay.com

ABSTRACT: PHP is the best programming language in the world!

PHP为啥是世界上最好的语言?你也许听过这个梗:

> 女孩:“你能让这个论坛的人都吵起来,我今晚就跟你走。”程序员:“PHP是最好的语言! ”论坛炸锅了,各种吵架...女孩:“服了你了,我们走吧你想干啥都行。”程序员:“今天不行,我一定要说服他们,PHP必须是最好的语言。”

今天 我就来说说 PHP 为什么 真是 世界上最好的语言。

函数特别多

比如你想读取一个文件,只需要这么一句话:

$data = file_get_contents("文件 或者 是URL");

真是没有比它更简单明了的了。 PHP强大的地方在于 它的函数特别特别的多,你只需要拿来用就可以了,并不需要重新造轮子。

7年前 PHP 的函数就有 将近6000个,更不用提最新的PHP 7了。

> 三个程序员坐在格子间里编程。一个程序员一言不发,他用的是python.一个程序员写一会儿就按一下编译,然后就玩会儿手机。他用的是C++。一个程序员坐在那里浏览网页,不时飞快的键入一些字符。经理看到,怒道:你怎么不干活,尽在上网。回答:我在查实现这个功能需要用什么函数。他用的是PHP。

门槛低

PHP 入门门槛低, C类型的语法容易理解,并不需要特别配置就可以很轻松的运行WEB程序。比如你安装完 apache2 再安装一个PHP,然后在WEB目录下创建一个PHP:

rep;
  }
}

而在 C#C++ 或JAVA里,你都是不用写这个 $this 的了,所以有时候很容易搞错:特别是你方法里有一个同名的变量。

PHP的缺点

当然 PHP也有缺点,比如 不支持多线程,可是我们并不需要啊。现在 web 服务器可以配置成多个 server, 完全可以做到多个 PHP 进程(不是线程)来同时跑多个程序。

PHP入门低,所以很容易上手,写出来的代码 参差不齐,很容易把逻辑和表现层混在一块,日后很不容易维护和调试,一些公司往往招一些新手过来没有经过怎么培训就写代码,写出来一团糟,但是PHP完全可以跑,只是别人在看代码的时候一头雾水,这往往也是编程老手看不上PHP程序员的原因之一吧。

最后,弄一个 GIF,PHP是最好的语言,不服来战!

[IMAGE: https://justyy.com/gif/justyy-php-is-the-best.gif]

[IMAGE: https://justyy.com/wp-content/uploads/2017/07/justyy-steemit.png]

CN 每日排行榜

// Later, it may be reposted to my blogs: justyy.com, helloacm.com and codingforspeed.com 稍后同步到我的中文博客和英文计算机博客
- 论PHP是世界上最好的语言!

Originally published at https://steemit.com Thank you for reading my post, feel free to Follow, Upvote, Reply, ReSteem (repost) @justyy which motivates me to create more quality posts.

原文首发于 https://Steemit.com 首发。感谢阅读,如有可能,欢迎Follow, Upvote, Reply, ReSteem (repost) @justyy 激励我创作更多更好的内容。

[IMAGE: https://steemitimages.com/0x0/https://justyy.com/gif/steemit.gif]

@justyy 是CN 区的点赞机器人,对优质内容进行点赞,只要代理给 @justyy 每天收利息(100 SP 每天0.04 SBD)并且能获得一次相应至少2倍的点赞,可以认为是VP 200%+ ,详细请看:
- cn区最低保障系统 上线了!
- CN 区优质内容点赞机器人上线了!
- 点赞机器人每日点赞记录整合到每日报表中!
- 虽然不挣钱,但是CN区低保计划还会继续下去

[IMAGE: https://justyy.com/gif/justyy-php-is-the-best.gif]
欢迎你发表你的见解和看法,特别有意思的评论我可能会奖励你1 SBD哦。
Interesting Comments might be rewarded with 1 SBD.

TAGS: [ #cn ] [ #cn-programming ] [ #steemstem ] [ #php ]

Replies

@minnowpond1 | Sept. 22, 2017, 11:32 a.m. | Votes: 0 | [ VOTE ]

This post recieved an upvote from minnowpond. If you would like to recieve upvotes from minnowpond on all your posts, simply FOLLOW @minnowpond

@tvb | Sept. 22, 2017, 11:37 a.m. | Votes: 0 | [ VOTE ]

php确实是好!就是好,比楼主偶像还要好哈哈哈

@tvb | Sept. 22, 2017, 11:40 a.m. | Votes: 0 | [ VOTE ]

最后这gif老帅了。

@justyy | Sept. 22, 2017, 8:14 p.m. | Votes: 0 | [ VOTE ]

我用的是 screenTogif 这个软件弄的。

@tvb | Sept. 22, 2017, 8:23 p.m. | Votes: 0 | [ VOTE ]

哈哈学会了

@tvb | Sept. 22, 2017, 11:41 a.m. | Votes: 0 | [ VOTE ]

果断转发, 我觉得我就是那个把逻辑层和表现层写在一起的菜乌!

@justyy | Sept. 22, 2017, 11:45 a.m. | Votes: 1 | [ VOTE ]

PHP 是世界上最好的语言!(以下注意队形)

@coldhair | Sept. 22, 2017, 11:53 a.m. | Votes: 0 | [ VOTE ]

PHP 是世界上最好的语言!

@shenchensucc | Sept. 22, 2017, 12:30 p.m. | Votes: 0 | [ VOTE ]

PHP 是世界上最好的语言!

@tvb | Sept. 22, 2017, 12:40 p.m. | Votes: 1 | [ VOTE ]

PHP 是世界上最好的语言!

@kenchung | Sept. 22, 2017, 2:33 p.m. | Votes: 0 | [ VOTE ]

PHP 是世界上最好的语言!

@dapeng | Sept. 22, 2017, 2:44 p.m. | Votes: 0 | [ VOTE ]

中文是世界上最好的语言!

@luneknight | Sept. 22, 2017, 3:35 p.m. | Votes: 0 | [ VOTE ]

PHP 是世界上最好的语言!

@zhengkai | Sept. 24, 2017, 2:01 a.m. | Votes: 0 | [ VOTE ]

如果我说不是怕被打。。。PHP 是世界上最好的语言!(逃~

@coldhair | Sept. 22, 2017, 11:56 a.m. | Votes: 0 | [ VOTE ]

PHP是“拍黄片”的意思吗?搞这么复杂~

@justyy | Sept. 22, 2017, 11:57 a.m. | Votes: 0 | [ VOTE ]

额。。拍好片

@tvb | Sept. 22, 2017, 12:40 p.m. | Votes: 0 | [ VOTE ]

以上对话。。。。这不是曾经我俩的对话吗?!

@justyy | Sept. 22, 2017, 5 p.m. | Votes: 0 | [ VOTE ]

咦,这对话似曾相识

@oguzdelioglu | Sept. 22, 2017, 12:18 p.m. | Votes: 0 | [ VOTE ]

Well said, I really like this that you've laid out. And I definitely share the viewpoint with you. I also hope to leave my legacy here on steemit, and what I share here is what I would want to be remembered for. I think we can all look for something new! Thank you for being here. :)

@xoxois | Sept. 22, 2017, 12:27 p.m. | Votes: 0 | [ VOTE ]

Good posts..
I like it

@beautifulbella | Sept. 22, 2017, 12:28 p.m. | Votes: 1 | [ VOTE ]

每个程序语言都有个HELLO WORLD的例子,没什么特别的。 不如写个帖子如何用PHP在STEEMIT发帖:)

@vincentyip | Sept. 22, 2017, 2:51 p.m. | Votes: 0 | [ VOTE ]

我也喜歡編程呢,很高興中文區有這麼多programming的帖子!

@justyy | Sept. 22, 2017, 4:59 p.m. | Votes: 0 | [ VOTE ]

你可以关注 标签 cn-programming

@tvb | Sept. 22, 2017, 7:16 p.m. | Votes: 0 | [ VOTE ]

居然还有这个标签,今天才知道。。。

@justyy | Sept. 22, 2017, 8:21 p.m. | Votes: 0 | [ VOTE ]

标签可以随便定义,比如可以用 cn-biancheng :)

@tvb | Sept. 22, 2017, 8:23 p.m. | Votes: 0 | [ VOTE ]

这我倒是知道,只是不知道还有这个公认的标签

@luneknight | Sept. 22, 2017, 3:43 p.m. | Votes: 0 | [ VOTE ]

请问最后这输入效果怎么实现的

@justyy | Sept. 22, 2017, 4:10 p.m. | Votes: 0 | [ VOTE ]

VS 插件 power mode

@fr3eze | Sept. 23, 2017, 2:24 a.m. | Votes: 0 | [ VOTE ]

最近想学coding做一个简单软件通过api来监视各个交易平台的币种,请问php合适吗?不然有什么适合的语言和途径?

@justyy | Sept. 23, 2017, 7:08 a.m. | Votes: 0 | [ VOTE ]

可以。

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>