PHP получить только номера
$str = 'In My Cart : 11 items';
$int = (int) filter_var($str, FILTER_SANITIZE_NUMBER_INT);
Abmin
$str = 'In My Cart : 11 items';
$int = (int) filter_var($str, FILTER_SANITIZE_NUMBER_INT);
## CHECK IF INPUT IS NUMBER ONLY
$number = "12345";
is_numeric($number); ## RETURNS TRUE IF NUMBER ONLY, ELSE FALSE