happpy36
asked on
seperate numbers
Given somthing like: 859034, 482309, 7432890, 483902
Seperate it out as so:
$1 = "859034";
$2= "482309";
And so on ...
Seperate it out as so:
$1 = "859034";
$2= "482309";
And so on ...
ASKER
code that takes the first number in the list 859034, 482309, 7432890, 483902 and then stores it in the
variable, $number, and then loops back and stores the second number, 482309, in $number and so on
would work perfect for me.
variable, $number, and then loops back and stores the second number, 482309, in $number and so on
would work perfect for me.
Are your numbers are as a string
$nums = "859034, 482309, 7432890, 483902"
or arrays
$nums = array(859034, 482309, 7432890, 483902);
$nums = "859034, 482309, 7432890, 483902"
or arrays
$nums = array(859034, 482309, 7432890, 483902);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
$data = "859034, 482309, 7432890, 483902"
$my_array = explode(", ",$data)