<?php $string = "Hello! 123 test this? <456>. done? 100%"; $int = intval(preg_replace('~<(.*?)>~', '', $string), 10); echo $int;
You have javascript disabled. You will not be able to edit any code.