首頁  >  文章  >  後端開發  >  PHP中的php_strip_whitespace()函數

PHP中的php_strip_whitespace()函數

PHPz
PHPz轉載
2023-08-27 10:57:05813瀏覽

PHP中的php_strip_whitespace()函數

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中的php_strip_whitespace()函數的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文轉載於:tutorialspoint.com。如有侵權,請聯絡admin@php.cn刪除