Saran Chamling loves the web technology, and enjoys designing, exploring and writing about it @sanwebe.com. You can find him at Twitter, Google or Facebook.
Sometimes you need to extract domain name from email using PHP for whatever reason, in that case you can use code below :$email = "[email protected]"; $domain_name = substr(strrchr($email, "@"), 1); echo "Domain name is :" . $domain_name;
Sometimes we need to create a widget in WordPress Template, to create a new widget just drop this line in your theme function.php file, and make changes as required.
I’ve been trying to set up Amazon SES for my small group of subscribers, as I was done using Feedburner. Because we all know there not much option to manipulate email template, and worst, there is no API available to play with! So I decided to switch to low cost Amazon SES, which is exactly I need.
Here is another PHP function you are looking for that converts any plain text URL into clickable links. just copy and drop it within your PHP project and call this function wherever you need to make URLs clickable.function plain_url_to_link($string) { return preg_replace( '%(https?|ftp)://([-A-Z0-9./_*?&;=#]+)%i', '$0', $string); } Usage Just like example below.$str = "http://www.google.com is a search website, you can also visit http://yahoo.com and http://twitter.com"; echo plain_url_to_link($str);