Статьи / PHP


fix php function

Correct the curvature of php developers.

Fix structure of language. First: value, second: delimiter. Not vice versa. Remove strange names of function "explode" and other "shit"...

split:

function _split($val, $delimiter=',') {
return explode($delimiter, $val);
}


join:
function _join($val, $delimiter=',') {
return implode($delimiter, $val);
}