被吐槽最多但又大范围运用的的编程语言:PHP
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">PHP,一种动态的解释性脚本语言,用于在服务器上构建交互式网站。尽管<span style="color: black;">此刻</span><span style="color: black;">非常多</span><span style="color: black;">研发</span>者都讨厌它,并宣布它<span style="color: black;">已然</span>死了;但事实上,它仍然是后端 Web <span style="color: black;">研发</span>最流行的语言之一。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-axegupay5k/acc003e37e9343b3bf8b1303b8d7f0a6~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728211989&x-signature=OT10kstAqNA2C0Op42e2TL%2B%2FXQc%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">今天就来<span style="color: black;">一块</span>认识一下这个饱受争议的编程语言!</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">PHP <span style="color: black;">经过</span> Laravel 和 Symfony 等框架为 WordPress 等内容管理系统、维基百科等顶级网站以及无数其他网站<span style="color: black;">供给</span>支持</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/792c4a73f80a4131acc6727dc1403159~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728211989&x-signature=LViWz8qUGFYkhici9lbHxw5xO4Y%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">连 Facebook 都用它!尽管<span style="color: black;">她们</span>构建了一个自定义编译器来将其转换为服务器上的<span style="color: black;">设备</span>代码。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/48ee6ff7f5934d36896fa7ba952bc9f9~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728211989&x-signature=vrTud%2FUwl53NGe8O%2FBqnaPe28ZQ%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">PHP 由 Rasmus Leardorff 于 1994 年创建,用于管理他的个人主页。这是一个聪明的缩写,但<span style="color: black;">针对</span>一种为价值数十亿美元的企业<span style="color: black;">供给</span>动力的语言<span style="color: black;">来讲</span>,这听起来很蹩脚。<span style="color: black;">因此</span>今天<span style="color: black;">咱们</span>练习认知失调来告诉自己 PHP <span style="color: black;">表率</span>超文本预处理器。它在历史上<span style="color: black;">拥有</span>特殊的地位,<span style="color: black;">由于</span>它早于 JavaScript,并且是最早直接嵌入 HTML 中的语言之一,<span style="color: black;">准许</span>在服务器上动态构建网站。它是开源的,是<span style="color: black;">经过</span>让普通人<span style="color: black;">能够</span>进行应用程序<span style="color: black;">研发</span>而彻底改变网络的技术之一。它的解释器是用 C 实现的,其语法受到 Perl 的启发。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">一块</span>来<span style="color: black;">瞧瞧</span>PHP的编码体验!</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">创建一个 PHP 文件并向其中添加<span style="color: black;">有些</span>基本的 HTML。<span style="color: black;">这里</span>文件中,您<span style="color: black;">能够</span><span style="color: black;">经过</span>打开 ?php 标签进入 PHP 模式。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p9-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/4021d4c1d4b8418e95f4f224db3d570f~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728211989&x-signature=K6Ls7VTN6JsVuUkBFi8i%2Bzp%2BsTo%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">这些标签内的代码将在服务器上呈现。<span style="color: black;">运用</span> echo 在标签的位置输出一个值。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/fb8ea40c83d54e938c58783b031a8b92~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728211989&x-signature=75a%2BXTZh2zNqRPxO8vT3b9DBKaI%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">要声明变量,请为其指定一个以$符号开头的名<span style="color: black;">叫作</span>,后跟一个值。它是一种每周类型语言,<span style="color: black;">因此呢</span>不需要类型注释。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/8173d24145564a67b2e3cfc96cf38b03~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728211989&x-signature=b1tD778JLtsSOiuQGVvYx%2BgKS0k%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">它还附带了<span style="color: black;">海量</span>面向 Web <span style="color: black;">研发</span>的预定义变量,例如 get、post 和 cookie,其中<span style="color: black;">包括</span><span style="color: black;">相关</span>传入 HTTP 请求的信息。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/b7bdcd0c08ce4f42992c65c9fa9d4855~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728211989&x-signature=pf46abHANzrIWKgyygZK4juVmYw%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">此刻</span>,当此代码在您的服务器上呈现时,它将输出一个 HTML 字符串,其中 PHP 标签将被您回显的任何内容替换。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/ec191d84e2c34011ac73149b79f1223b~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728211989&x-signature=7o2sUiYIjv06TJE5zQP07lVJG9o%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">该语言还支持多种编程范例。您<span style="color: black;">持有</span>一流的函数,<span style="color: black;">能够</span>将其分配给变量或匿名用作参数。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/e1391188d67245ef974900ae91a5c22e~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728211989&x-signature=QKwNmhQ14Mtstr4EIFi05JvahxE%3D" style="width: 50%; margin-bottom: 20px;"></div>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/f38464f4265f46168eefcef6b755da2a~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728211989&x-signature=xdnglMmY9tZNGh%2F57Uo%2FIRHDL2k%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">它<span style="color: black;">持有</span><span style="color: black;">海量</span>的内置功能,几乎<span style="color: black;">能够</span>完成 Web <span style="color: black;">研发</span>人员所能想象到的任何事情。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/7b06c879d849403f8838898b33bc79e2~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728211989&x-signature=8%2B8%2BBiyqEV0va62z6Sv%2FOHf2Qro%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">它还<span style="color: black;">拥有</span>完整的对象模型,您<span style="color: black;">能够</span>在其中定义<span style="color: black;">拥有</span>继承的类来实现面向对象的模式。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/b20ce08b60424b0d848fdfaa86abf6be~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728211989&x-signature=A3lfjIlXg9PFLFnIMpv6YoCMGw0%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">咱们</span><span style="color: black;">日前</span><span style="color: black;">运用</span>的是 PHP 版本 8,它<span style="color: black;">拥有</span>您所期望的现代实用语言的所有功能。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">每一个</span> Web <span style="color: black;">研发</span>人员都应该<span style="color: black;">熟练</span>它,<span style="color: black;">由于</span><span style="color: black;">按照</span>统计,您客户的网站有 78.5% 的机会运行个人主页语言。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">倘若</span>您想开拓眼界,<span style="color: black;">认识</span>和<span style="color: black;">发掘</span><span style="color: black;">更加多</span>计算机<span style="color: black;">行业</span>的概念和知识,欢迎关注我在<span style="color: black;">连续</span>更新的<span style="color: black;">研发</span>者科普专栏:</p>https://www.didispace.com/youtube/,助你探索<span style="color: black;">更加多</span>计算机<span style="color: black;">行业</span>的热门知识!
外链发布论坛学习网络优化SEO。 谷歌外链发布 http://www.fok120.com/ 感谢楼主的分享!我学到了很多。
页:
[1]