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

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -