why does trim() remove NUL?

From: Date: Mon, 15 Oct 2001 13:24:27 +0000
Subject: why does trim() remove NUL?
Groups: php.general 
Request: Send a blank email to php-general+get-71097@lists.php.net to get a copy of this message
Are PHP strings NUL-terminated? If so, why does trim() remove the NUL? After using trim() on a blank line, presumably strlen() will return 0. How does strlen() work, if the NUL has been removed? -- John A. Grant * I speak only for myself * (remove 'z' to reply) Radiation Geophysics, Geological Survey of Canada, Ottawa If you followup, please do NOT e-mail me a copy: I will read it here

« previous php.general (#71097) next »