启尚博客

世上最牢固的感情不是"我爱你",而是"我习惯了有你"。彼此依赖,才是最深的相爱。

2023-08-27

PHP 基础 网络协议>

PHP中的php_strip_whitespace()函数

PHP中的php_strip_whitespace()函数

php_strip_whitespace()函数返回被剥离注释和空白字符的源代码。

Syntax

php_strip_whitespace(file_path)
登录后复制

参数

  • file_path − The path of file.

返回

The php_strip_whitespace() function returns stripped source code on success.

Example

的中文翻译为:

示例

<?php
   /*
      * Demo comment
   */
   echo php_strip_whitespace ("new.php");
?>
登录后复制

上述代码删除了所有注释和空白。

以上就是PHP中的php_strip_whitespace()函数的详细内容,更多请关注php中文网其它相关文章!

https://www.php.cn/faq/598398.html

来一发吐槽