Jump to content

Goku Jr

Member Since 25/06/2003
Offline Last Active 05/09/2017, 18:10

Posts I've Made

In Topic: arrays

26/08/2017, 10:18




i have an array with many values and the values are in twos separated by a comma, like this D3S1358=>15,16. i need to separate the two so that they are separate values each with its own variable like this $a will be 15 and $b will be 16. make sense?


Please help...


I didn't find the right solution from the Internet.




Use function explode() and list() 



$array = array('15','16');
list ($a, $b) = explode(',', $array);

IPB Skin By Virteq