Tuesday, April 10, 2012

ereg is deprecated` errors in PHP 5.3+

If your working with PHP 5.3 or heighter, chances are high you’re going to run into a few warnings or deprecated function messages.
  
TO
ereg
('\.([^\.]*$)', string $string [, array &$regs ] );

Change 
preg_match('/\.([^\.]*$)/', $subject$matches);

No comments:

Post a Comment