note 87167 deleted from function.substr by danbrown

From: Date: Mon, 24 Nov 2008 16:50:08 +0000
Subject: note 87167 deleted from function.substr by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-146882@lists.php.net to get a copy of this message
Note Submitter: geisonfgf at gmail dot com ---- Hello people, I needed some times verify if a link have the string h-t-t-p:// then I build this function to help myself and i hope help you too! So, Let's go code! // Verify if file contain the string 'h-t-t-p://' in the begin // Return nothing or the string 'h-t-t-p://' function http_exist($link){ $h-t-t-p = ''; if(substr($link,0,6) == 'h-t-t-p://'){ $http = 'h-t-t-p://'; } return $http; } NOTICE: I use - in http because I dont can post with the word http.

« previous php.notes (#146882) next »