note 43863 added to function.explode
| From: | jakemcmahonathotmaildotcom at rn2 dot php dot net | Date: | Tue, 06 Jul 2004 18:06:52 +0000 |
| Subject: | note 43863 added to function.explode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-72781@lists.php.net to get a copy of this message | ||
explode() is quite a useful function. If on your site you have a refereer thing: Eg: "The last
site you visited was <?php echo $_SERVER['HTTP_SERVER_VARS']; ?>!" Why not
have something a bit more profesional?
<?php
$strReferer = explode(".", $_SERVER['HTTP_REFERER']);
echo "you have just came from" . $strReferer[1];
?>
If the referer was http://google.co.uk/, this would just display
the 'google' part.
----
Manual Page -- http://www.php.net/manual/en/function.explode.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43863
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43863&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43863&report=yes
Search -- http://master.php.net/manage/user-notes.php