note 94449 added to function.stripos
| From: | (at]gmaildoutcom) | Date: | Fri, 06 Nov 2009 01:04:25 +0000 |
| Subject: | note 94449 added to function.stripos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-162430@lists.php.net to get a copy of this message | ||
Eliminates double triple quad .... spaces in a text
ex:
echo noSpacer("cuak is near the table");
will get this output:
cuak is near the table
function noSpacer($entrada)
{
$entrada=trim($entrada);
while (stripos($entrada," "))
{
$entrada=str_replace(" "," ",$entrada);
}
return $entrada;
}
if this function already exists ignore me (don't beat me :P )
----
Server IP: 148.206.80.9
Probable Submitter: 189.135.52.163
----
Manual Page -- http://www.php.net/manual/en/function.stripos.php
Edit -- https://master.php.net/note/edit/94449
Del: integrated -- https://master.php.net/note/delete/94449/integrated
Del: useless -- https://master.php.net/note/delete/94449/useless
Del: bad code -- https://master.php.net/note/delete/94449/bad+code
Del: spam -- https://master.php.net/note/delete/94449/spam
Del: non-english -- https://master.php.net/note/delete/94449/non-english
Del: in docs -- https://master.php.net/note/delete/94449/in+docs
Del: other reasons-- https://master.php.net/note/delete/94449
Reject -- https://master.php.net/note/reject/94449
Search -- https://master.php.net/manage/user-notes.php