<?php $string = "RC9999999999A202"; Preg_match("/([A-Z]{2})(\d{10})A(\d+)/", $string, $match); List($string, $code, $phone, $amount) = $match; Echo $code . " ". $phone ." ". $amount;
You have javascript disabled. You will not be able to edit any code.