Category Covered

PHP time problem on URL

Sometimes we see that we cant send time through the url. So on that cases you need to send time as time stamp. Here is an example on how you need to send.

$urlstr = strtotime('09:30:00');

Send the $urlstr on the url

Now receive and convert the $urlstr

$slot = date('h:i:s', $urlstr);