php_strip_whitespace() function in PHP

PHPz
Release: 2023-08-27 10:58:01
forward
897 people have browsed it

php_strip_whitespace() function in PHP

The php_strip_whitespace() function returns the source code with comments and whitespace characters stripped.

Syntax

php_strip_whitespace(file_path)
Copy after login

parameter

  • file_path − The path of file.

return

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

The Chinese translation of

Example

is:

Example

<?php
   /*
      * Demo comment
   */
   echo php_strip_whitespace ("new.php");
?>
Copy after login

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!

Related labels:
source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template