title: strtotime() is not working, can't figure out the reason
body: <p>Ok, i'm having some issues with strtotime(), using this php class, i'll get an response like: </p>
  
  <p>Apr 03 2019, 22:32:12 CEST  Died at Level 988 by a guzzlemaw.</p>
  
  <p>Then, i'm using implode() to get only Apr 03 2019, 22:32:12 CEST, however when trying to strtotime($output_str), it returns nil.</p>
  
  <p>Why?</p>
  
  <pre><code>include_once "TibiaWebAPI.class.php";
  
  $player = new Tibia\Player("Punbelz");
  
  if($player-&gt;getDeaths()) {
      $lastdeath = $player-&gt;getDeaths()[0];
      $output_str = implode(" ", array_splice(explode(" ",$lastdeath),0,1));
      echo strtotime($output_str);
  }
  </code></pre>
  
  <p>For reference, this is <a href="https://github.com/madsaune/TibiaWebsiteAPI/blob/master/TibiaWebAPI.class.php" rel="nofollow noreferrer">TibiaWebAPI.class</a></p>
  
  <p>Edit:</p>
  
  <p>Even using preg_match() it doesn't work.</p>
  
  <pre class="lang-php prettyprint-override"><code>include_once "TibiaWebAPI.class.php";
  
  $player = new Tibia\Player("Punbelz");
  
  if($player-&gt;getDeaths()) {
      $lastdeath = $player-&gt;getDeaths()[0];
      $pattern = "/(.*?)[0-9]+[:][0-9]+[:][0-9]+/";
  
      if (preg_match($pattern, $lastdeath, $matches)) {
          $myDate = $matches[0];
  
          echo strtotime($myDate);
      }
  }
  </code></pre>