j007ha Posted September 29, 2008 Share Posted September 29, 2008 i got a question if i got a email which is : [email protected] but i only want to echo "abc" only which is echo the word in front @ how i do this? Link to comment https://forums.phpfreaks.com/topic/126215-help-plz~/ Share on other sites More sharing options...
fahim_junoon Posted September 29, 2008 Share Posted September 29, 2008 Hi Try this <?php $var = "[email protected]"; $split = explode("@", $var); echo $split[0]; ?> Link to comment https://forums.phpfreaks.com/topic/126215-help-plz~/#findComment-652675 Share on other sites More sharing options...
j007ha Posted September 29, 2008 Author Share Posted September 29, 2008 thx^^ that is wat i want^^ Link to comment https://forums.phpfreaks.com/topic/126215-help-plz~/#findComment-652719 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.