I have the following code aand understand split()is deprecated - please can someone help out with replacement code.

PHP Code:
foreach ($lines as $l) {
  if (
trim($l) != "") {
    
$t = (array)split("\r\n"trim($l));
    if (
$t[1] == 'TRUE'$total_items++;
  }

Thanks

Allan