php源代码空白 [英] php source code whitespace

查看:67
本文介绍了php源代码空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我熟悉Java中的缩小概念以及空格如何影响JS文件大小,但是该概念不适用于PHP脚本吗?

I am familiar with the concept of minification in Javascript and how whitespaces contribute to JS file sizes, but does that concept not apply to PHP scripts?

空格会使php脚本文件的大小变大吗?我们可以缩小php脚本吗?还是这样做没有意义,因为php源代码中的空格根本不会影响任何东西?

does whitespace make php scripts file sizes larger? can we minify php scripts? or is there no point in doing so because whitespaces in source codes in php does not affect anything at all?

推荐答案

这样做是没有意义的,因为用户不会下载您的PHP文件.无需缩小服务器端脚本.

There's no point in doing so because users don't download your PHP file. There's no need to minify server-side scripts.

这篇关于php源代码空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆