Answers for "explode array"

2

js explode equivalent

//Loading the variable
var mystr = '0000000020C90037:TEMP:data';

//Splitting it with : as the separator
var myarr = mystr.split(":");

//Resulting array structure
myarr = ['0000000020C90037', 'TEMP', 'data'];
Posted by: Guest on September-23-2020
27

php explode

$colors  = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
Posted by: Guest on June-14-2019

Code answers related to "Javascript"

Browse Popular Code Answers by Language