Php Date Function Example Code Switching