0) { $data = explode(",", trim($options), 2); $start = (!empty ($data [0]) && is_numeric($data [0])) ? $data [0] : 0; $length = (!empty ($data [1])) ? $data [1] : 0; $result = substr($output, $start, $length); return $result; }