PHP test

This is to see if the syntax highlighting plugin works..

<?php
    $Usersdate = 'Sat Dec 1 2007 9:56:42 GMT-0800 (Pacific Standard Time)'; //this date comes from the date() javascript function
    echo date('Y-m-d H:i:s', strtotime(substr($Usersdate, 0, strpos($Usersdate, ' GMT'))));  //strips everything right before the GMT, then formats it for MySQL
?>

Category: Random Comment »


Leave a Reply



Back to top