Convert a name=value pairs string into array
11
Convert a name=value pairs string into array



me
jamesmcm
Can
Kelmi
ysg
dannymo2
chorny
wallie
Hackdemian
impomatic
dannyboy
sundaramkumar
mattrmiller
Pio
i_kenneth
ASmith
ctiggerf
sehrgut
bertheymans
SCoon
And if you must use commas just str_replace it with &.
I would also rewrite your function, adding a second optional parameter - delimiter.
function pairstr2Arr($string, $delimiter = ',') {
$pairs = explode($delimiter, $string);
...
}