- Output for 5.3.0 - 5.3.24, 5.4.0 - 5.4.15
- Parse error: syntax error, unexpected ';' in lVmeS on line 10
Process exited with code 255. - Output for 5.3.25
- Parse error: syntax error, unexpected ';' in /in/fW517 on line 10
Process exited with code 255.
<?php
$str = "Diese Seite wurde bisher 6.971 mal abgerufen.";
//$str = "Diese Seite wurde bisher 19 mal abgerufen.";
$matches = array();
preg_match('/\d+(\.\d+)?/', $str, $matches);
$val = $matches[0];
$val = str_replace('.', '', $val);
var_dump(intval($val);