note 75847 added to function.strpos
| From: | Bastibybasti2web dot de at osu1 dot php dot net | Date: | Mon, 18 Jun 2007 19:18:12 +0000 |
| Subject: | note 75847 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127661@lists.php.net to get a copy of this message | ||
This function adds "http://" in the beginning of a string, if
it is needed.
function add_http($site)
{
if(!empty($site))
{
$hp = str_replace("http://","",$site);
return 'http://'.$hp;
}
}
Submitted by www.basti2web.de
----
Server IP: 64.71.164.2
Probable Submitter: 172.176.130.88
----
Manual Page -- http://www.php.net/manual/en/function.strpos.php
Edit -- https://master.php.net/note/edit/75847
Del: integrated -- https://master.php.net/note/delete/75847/integrated
Del: useless -- https://master.php.net/note/delete/75847/useless
Del: bad code -- https://master.php.net/note/delete/75847/bad+code
Del: spam -- https://master.php.net/note/delete/75847/spam
Del: non-english -- https://master.php.net/note/delete/75847/non-english
Del: in docs -- https://master.php.net/note/delete/75847/in+docs
Del: other reasons-- https://master.php.net/note/delete/75847
Reject -- https://master.php.net/note/reject/75847
Search -- https://master.php.net/manage/user-notes.php