note 62072 deleted from function.trim by hholzgra

From: Date: Thu, 02 Aug 2012 12:24:10 +0000
Subject: note 62072 deleted from function.trim by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189646@lists.php.net to get a copy of this message
Note Submitter: rchaube at staff dot atlantic dot net ---- I was accepting text pasted from a csv file into a textarea in my code. I found that even using trim was not able to get rid of the whitespace characters at the end of the string. Finally, using this helped: $result = trim($source,"\x7f..\xff\x0..\x1f"); Hope this saves someone few hours. All thanks to previous comment from HW for this

« previous php.notes (#189646) next »