note 79066 added to function.php-strip-whitespace

From: Date: Thu, 08 Nov 2007 21:24:37 +0000
Subject: note 79066 added to function.php-strip-whitespace
Groups: php.notes 
Request: Send a blank email to php-notes+get-132120@lists.php.net to get a copy of this message
@Zvjezdan Patz Your script is quite the strain on the server. You might just want to do this (just the print line): <?php print preg_replace("/[ ]{1,}/", ",", trim($str)); ?> ---- Server IP: 213.249.64.162 Probable Submitter: 212.127.191.113 ---- Manual Page -- http://www.php.net/manual/en/function.php-strip-whitespace.php Edit -- https://master.php.net/note/edit/79066 Del: integrated -- https://master.php.net/note/delete/79066/integrated Del: useless -- https://master.php.net/note/delete/79066/useless Del: bad code -- https://master.php.net/note/delete/79066/bad+code Del: spam -- https://master.php.net/note/delete/79066/spam Del: non-english -- https://master.php.net/note/delete/79066/non-english Del: in docs -- https://master.php.net/note/delete/79066/in+docs Del: other reasons-- https://master.php.net/note/delete/79066 Reject -- https://master.php.net/note/reject/79066 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#132120) next »