eval.in

Paste #735025

PHP — PHP 5.6.23, pasted 2 years ago (json)

1
2
3
<?php
$a_date = "2009-11-23";
echo date('Y-m-t',strtotime($a_date));

Program Output

2009-11-30

OK (0.008 sec real, 0.008 sec wall, 14 MB, 43 syscalls)

Fork