Split(php explode) by new line in server connect

While I wait to see if it can be done from Core I created a custom formatter for this.

I used preg_split instead of the regular explode as I want to catch all cases (\n and \r\n). @mebeingken

function formatter_splitme($val) {
    return preg_split('/\n|\r\n?/', $val);
}

image

1 Like