note 92737 added to function.trim

From: Date: Thu, 06 Aug 2009 16:54:00 +0000
Subject: note 92737 added to function.trim
Groups: php.notes 
Request: Send a blank email to php-notes+get-159151@lists.php.net to get a copy of this message
As another poster has pointed out, chr(160) is also important to filter out. This is the ascii representation of an html "hard space", and it will show up sometimes in your datasources, especially if the data was copied-and-pasted from a web browser from a page that used hard spaces to force layout. This is not just a Windows problem. I am on a Mac and I have had to deal with it too (although the data in question may have indeed originally come from a windows user, I don't know.) ---- Server IP: 64.71.164.2 Probable Submitter: 71.130.66.66 ---- Manual Page -- http://www.php.net/manual/en/function.trim.php Edit -- https://master.php.net/note/edit/92737 Del: integrated -- https://master.php.net/note/delete/92737/integrated Del: useless -- https://master.php.net/note/delete/92737/useless Del: bad code -- https://master.php.net/note/delete/92737/bad+code Del: spam -- https://master.php.net/note/delete/92737/spam Del: non-english -- https://master.php.net/note/delete/92737/non-english Del: in docs -- https://master.php.net/note/delete/92737/in+docs Del: other reasons-- https://master.php.net/note/delete/92737 Reject -- https://master.php.net/note/reject/92737 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#159151) next »