php - Converting a time string to UNIX timestamp -
How can I change the string of a time like this:
30/7 / 2010
A UNIX timestamp?
I tried strtotime ()
but I got an empty string: (
PHP> = 5.3:
$ var = date time :: createFromFormat ('j / n / y', '30 / 7/2010 ') - & gt; GetTimestamp ();
Comments
Post a Comment