Friday, 7 November 2014

Get PHP to display warnings and errors only not Notice

Just put the Below code in Php.ini

error_reporting = E_ALL & ~E_NOTICE;

Get only domain name from email using PHP.

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