php_strip_whitespace() function in PHP

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

Syntax

php_strip_whitespace(file_path)

Parameters

  • file_path − The path of file.

Return

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

Example


The above code strip all the comments and whitespace.

Updated on: 2019-07-30T22:30:23+05:30

144 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements