I have a date variable that contains data in the forma: DD-MM-YY. -> $date
I also have another variable that contains the time in HH:MM. -> $time
I’d like to convert it to RFC-822 for to be used in a RSS feed.
How can I achieve this with PHP?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this:
Will output something like this:
The second parameter of the function is optional, you can supply only the date and it will still work.