I have no idea on how to do this, it’d probably use an explode but that’d not do exactly as I wanted.
Say I have a string:
a,1,1,0,0;0,1,1,0,0;r,1,1,0,0;
and I have an array:
a = atv
p = 330c
U = blista
c = BMW
D = bobcat
r = charger
I’d like it so that when it’s called as a function on that string like seperateString($string); that it’d return something like “atv, charger”
I’ve tried some searching but to no avail have I found something which would return a string specific to the array.
Try this:
Outputs:
codepad example