How to convert 24 hour format to 12 hour format time in php?