- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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
<?php /* * Demo comment */ echo php_strip_whitespace ("new.php"); ?>
The above code strip all the comments and whitespace.
Advertisements