Source for file php_strip_whitespace.php
Documentation is available at php_strip_whitespace.php
// $Id: php_strip_whitespace.php,v 1.13 2007/04/17 10:09:56 arpad Exp $
* Replace T_DOC_COMMENT in PHP 4
define('T_ML_COMMENT', T_COMMENT );
define('T_DOC_COMMENT', T_ML_COMMENT );
* Replace php_strip_whitespace()
* @license LGPL - http://www.gnu.org/licenses/lgpl.html
* @copyright 2004-2007 Aidan Lister <aidan@php.net>, Arpad Ray <arpad@php.net>
* @link http://php.net/function.php_strip_whitespace
* @author Aidan Lister <aidan@php.net>
* @version $Revision: 1.13 $
* @require PHP 4.0.0 (user_error) + Tokenizer extension
user_error('php_strip_whitespace() expects parameter 1 to be string, ' .
gettype($file) . ' given', E_USER_WARNING );
foreach ($tokens as $token) {
// Single character tokens
list ($id, $text) = $token;
// We don't want more than one whitespace in a row replaced
Documentation generated on Mon, 11 Mar 2019 15:26:35 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|