-1

I have this code: 37,40,42,46,49,54,56,57 now I wanna separate each number and convert all numbers to an Array. The array that I want is:

array(37,40,42,46,49,54,56,57)
Mahdi98
  • 135
  • 1
  • 2
  • 8

1 Answers1

0

You can use explode() like this:

$string = "37,40,42,46,49,54,56,57";
$array = explode("," , $string);
Geshode
  • 3,600
  • 6
  • 18
  • 32