note 41159 deleted from function.strstr by thiago
| From: | thiago@php.net | Date: | Tue, 28 Oct 2008 13:45:44 +0000 |
| Subject: | note 41159 deleted from function.strstr by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145870@lists.php.net to get a copy of this message | ||
Note Submitter: schultz at widescreen dot ch
----
a nice way to decide wether a string starts with a certain prefix, one can use this condition...
$url = 'http://www.widescreen.ch';
$isUrl = ( strstr($url,'http://') == $url );
have fun!
Lars