Friday, 7 November 2014

How do I turn off PHP Notices, Error and Warning?

Just write the below code


<?php
// Turn off all error reporting
error_reporting(0);
?>

Get only domain name from email using PHP.

public function getDomainName ( $business_email ){ $domain_name = substr ( strrchr ( $email , "@" ), 1 ); echo $...