MCQs > IT & Programming > LAMP > How would you convert the date set in the following format into a PHP timestamp? $date = 'Monday, July 28, 2008 @ 12:15 am';

LAMP MCQs

How would you convert the date set in the following format into a PHP timestamp?

$date = "Monday, July 28, 2008 @ 12:15 am";

Answer

Correct Answer: $date = str_replace("@ ","",$date); $date = strtotime($date);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

LAMP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

LAMP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it