- var_dump: documentation ( source)
- preg_match: documentation ( source)
- print_r: documentation ( source)
<?php
$str = "Diese Seite wurde bisher 6.971 mal abgerufen.";
$matches = array();
preg_match('/([^\d]|^)\d{1,2}.\d{3}([^\d]|$)/', $str, $matches);
print_r($matches);
var_dump(intval($matches[0]));