Get the current date and time in PHP with '2016-07-04 00:00:00.000' format : <p>I am using mssql db with php. Which PHP function can return the current datetime. (i.e.) I want the current date and time to be saved in the following format say for example,</p>

<pre><code>2016-07-04 11:10:05.000
</code></pre>

<p>Thanks!</p>
