RE: [PHP] split string value again

From: Date: Thu, 29 Mar 2001 09:51:37 +0000
Subject: RE: [PHP] split string value again
Groups: php.general 
Request: Send a blank email to php-general+get-46061@lists.php.net to get a copy of this message
$addr = "test@foo.com"; $splitaddr = explode("@",$addr); resulting in $splitaddr[0] = "test"; $splitaddr[1] = "foo.com"; -Stewart -----Original Message----- From: Jacky [mailto:jacky@activelifestyle.com] Sent: 29 March 2001 23:52 To: php-general@lists.php.net Subject: [PHP] split string value again Hi again have to try again after I have not recieved any advice, I have a vairable that stores email address value. I need to break it so that I will only get the dmain name bit to store in another variable so that I can redirect user to that domain, like if user email is test@foo.com. then I would like to break that and take only foo.com bit to use for navigation. How can I do that? Jack jacky@activelifestyle.com "There is nothing more rewarding than reaching the goal you set for yourself"

« previous php.general (#46061) next »