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 also do it using preg_split by splitting your input at the point which between the digits and the letters:
preg_split
list($num,$alpha) = preg_split('/(?<=\d)(?=[a-z]+)/i',$Order_num);
See it