PHP time format generate different results when spaces included
date('h:i A',strtotime('05:45 AM')); //05:45AM
date('h:i A',strtotime('05 : 45 AM')); // 01:00 AM
Here is the result
Spaces works in older version of PHP and it is failing in PHP Version above 5.0.5; I wanted to check why this is not allowed with new version