<?php $string = 'http://qa.office/' ; $int = intval(preg_replace("//'/", "/2", $string), 10); echo $int;
You have javascript disabled. You will not be able to edit any code.