note 75847 deleted from function.strpos by nlopess

From: Date: Tue, 19 Jun 2007 12:41:13 +0000
Subject: note 75847 deleted from function.strpos by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-127758@lists.php.net to get a copy of this message
Note Submitter: Basti by basti2web.de ---- 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

« previous php.notes (#127758) next »