note 40001 added to function.xml-parse

From: Date: Wed, 18 Feb 2004 15:22:05 +0000
Subject: note 40001 added to function.xml-parse
Groups: php.notes 
Request: Send a blank email to php-notes+get-65341@lists.php.net to get a copy of this message
Need to change the first if condition to if(trim($data) != '') or it will not evaluate values of 0. function _cData( $parser, $data ) { if( trim( $data ) != '') { if (empty($this->pointer[$this->index])) $this->pointer[$this->index] = trim($data) ; else $this->pointer[$this->index] .= $data."\n" ; } } ---- Manual Page -- http://www.php.net/manual/en/function.xml-parse.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40001 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40001&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40001&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65341) next »