I have an alphanumeric string like 1234and5678
.
I want to store the numbers preceding and
i.e 1234
into one variable and the number after and
i.e 5678
into another variable as shown below:
$var1=1234;
$var2=5678;
also what should do if i replace and
by some random special characters like #$%
etc.
Can you please help me out? Thanks in advance.