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? Quote 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]; ?> Quote 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^^ Quote Link to comment https://forums.phpfreaks.com/topic/126215-help-plz~/#findComment-652719 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.