卓越飞翔博客卓越飞翔博客

卓越飞翔 - 您值得收藏的技术分享站
技术文章16333本站已运行3317

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");
?>

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

卓越飞翔博客
上一篇: 在C语言中编写一个程序,打印出以Z形状排列的平方矩阵
下一篇: 解决C++代码中出现的“error: expected ';' after 'datatype'”问题
留言与评论(共有 0 条评论)
   
验证码:
隐藏边栏