I want to have the desired output as such 20170613 which is an integer. I know using strtotime() I can get an UNIX timestamp as an integer, but I don't want that. date("Ymd") however returns a string.
I can't seem to figure a way to convert this to an integer.
Edit #1: Here is what I am attempting: $x = (int)date("Ymd"); echo $x;
The result however does not show up in the browser. Infact in the developer's tools, it shows internal server error.