php代码压缩,除可以使用token_get_all进行压缩之外,还可以使用系统自带的函数

 

(PHP 5)

php_strip_whitespace — 返回删除注释和空格后的PHP源码

说明

string php_strip_whitespace ( string $filename )

返回删除注释和空格后 filename 的PHP源码。这对实际代码数量和注释数量的对比很有用。 此函数与 命令行 下执行 php -w 相似。 commandline

相关文章:

  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-12-19
  • 2022-02-20
  • 2021-08-27
  • 2022-12-23
猜你喜欢
  • 2021-12-21
  • 2021-12-04
  • 2021-12-04
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案