The php_strip_whitespace() function returns the source code with comments and whitespace characters stripped.
php_strip_whitespace(file_path)
file_path − The path of file.
The php_strip_whitespace() function returns stripped source code on success.
The Chinese translation of<?php /* * Demo comment */ echo php_strip_whitespace ("new.php"); ?>
The above code removes all comments and whitespace.
The above is the detailed content of php_strip_whitespace() function in PHP. For more information, please follow other related articles on the PHP Chinese website!