<?php $nums = [ '8045551234', '18045551234', '0018045551234', ]; foreach ($nums as $num) { echo substr($num, -10); echo ' '; echo substr($num, 0, -10); echo PHP_EOL; }
You have javascript disabled. You will not be able to edit any code.