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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -