note 75848 added to function.str-replace

From: Date: Mon, 18 Jun 2007 19:24:04 +0000
Subject: note 75848 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-127662@lists.php.net to get a copy of this message
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 :) ---- Server IP: 64.71.164.2 Probable Submitter: 172.176.130.88 ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- https://master.php.net/note/edit/75848 Del: integrated -- https://master.php.net/note/delete/75848/integrated Del: useless -- https://master.php.net/note/delete/75848/useless Del: bad code -- https://master.php.net/note/delete/75848/bad+code Del: spam -- https://master.php.net/note/delete/75848/spam Del: non-english -- https://master.php.net/note/delete/75848/non-english Del: in docs -- https://master.php.net/note/delete/75848/in+docs Del: other reasons-- https://master.php.net/note/delete/75848 Reject -- https://master.php.net/note/reject/75848 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#127662) next »