<?php $string = " Sisa pulsa Rp.8225.Aktif sd 18/01/2017."; $int = intval(preg_replace('/[^0-9]+/', '', $string), 10); echo $int;
You have javascript disabled. You will not be able to edit any code.