JSlip  1.0
Controller.php
Go to the documentation of this file.
1 <?php
16 {
32  public function chkYmd($dt)
33  {
34  $dt = str_replace('/', '-', $dt);
35  $ymd = explode('-', $dt);
36 
37  if (empty($ymd[2])) {
38  return false;
39  }
40 
41  return checkdate($ymd[1], $ymd[2], $ymd[0]);
42  }
43 }
Controller\chkYmd
chkYmd($dt)
Definition: Controller.php:32
Controller
Definition: Controller.php:15