public static function find()
    {
      $files = scandir(self::$logger_opts['path']);

      $current = new \DateTime();
      $current->setTimestamp(time());
      $term = __DEFAULT_LOG_PREFIX__ . $current->format("Y-M-D");

      foreach ($files as $f) {
        $matches = array();
        preg_match("/^$term.*$/", $f, $matches);

        if (sizeof($matches) > 0) {
          return $f;
        }
      }


      return FALSE;
    }
public static function find()
    {
      $files = scandir(self::$logger_opts['path']);

      $current = new \DateTime();
      $current->setTimestamp(time());
      $term = __DEFAULT_LOG_PREFIX__ . $current->format("Y-M-D");

      foreach ($files as $f) {
        $matches = array();
        preg_match("/^$term.*$/", $f, $matches);

        if (sizeof($matches) > 0) {
          return $f;
        }
      }


      return FALSE;
    }
public static function find ( ) { $ files = scandir ( self :: $ logger_opts [ 'path' ] ) ; $ current = new \ DateTime ( ) ; $ current -> setTimestamp ( time ( ) ) ; $ term = __DEFAULT_LOG_PREFIX__ . $ current -> format ( "Y-M-D" ) ; foreach ( $ files as $ f ) { $ matches = array ( ) ; preg_match ( "/^$term.*$/" , $ f , $ matches ) ; if ( sizeof ( $ matches ) > 0 ) { return $ f ; } } return FALSE ; }
can we find a member
for this log.
match by Y-M-D
can we find a member for this log . match by Y - M - D