note 75848 deleted from function.str-replace by nlopess

From: Date: Tue, 19 Jun 2007 12:41:19 +0000
Subject: note 75848 deleted from function.str-replace by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-127759@lists.php.net to get a copy of this message
Note Submitter: Basti by basti2web.de ---- Submitted by http://basti2web.de function add_http($site) { if(!empty($site)) { $hp = str_replace("http://","",$site); return 'http://'.$hp; } } This function is useful to be sure, that a string begins with "http". Have Fun :)

« previous php.notes (#127759) next »