<?php $block = '25*'; $pos = strpos($block, '*'); if ($pos !== false) { $num = substr($block, 0, $pos); } echo $num;
You have javascript disabled. You will not be able to edit any code.