I have a string say: Order_num = \"0982asdlkj\"
Order_num = \"0982asdlkj\"
How can I split that into the 2 variables, with the number element and then another variable with the le
You can use a regex for that.
preg_match('/(\d{1,4})([a-z]+)/i', $str, $matches); array_shift($matches); list($num, $alpha) = $matches;