
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免费学习笔记(深入)”;











