Filter numbers only from string PHP

Filter numbers only from string PHP $_get method

$itmidx = $_GET[‘item’];

$itmid = preg_replace(‘/[^0-9.]+/’, ”, $itmidx);

Facebook Comments