- var_dump: documentation ( source)
- preg_match: documentation ( source)
- str_replace: documentation ( source)
<?php
//$str = "Diese Seite wurde bisher 6.971 mal abgerufen.";
$str = "Diese Seite wurde bisher 4.523.817 mal abgerufen.";
$matches = array();
preg_match('/\d+(\.\d+)?/', $str, $matches);
$val = $matches[0];
$val = str_replace('.', '', $val);
var_dump(intval($val));