Jump to content


Goku Jr's Content

There have been 1 items by Goku Jr (Search limited from 22/09/2018)


Ordernar por                Order  

#1076981 arrays

Posted by Goku Jr on 26/08/2017, 10:18 in PHP

 

Hello,

 

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.
References

 

Hi,

 

Use function explode() and list() 

 

Ex:

<?php
$array = array('15','16');
list ($a, $b) = explode(',', $array);
?>




IPB Skin By Virteq