src/Utils/ListTools.php
public static function last($list, $delimiter = ',')
  {
    $array = static::toArray($list, $delimiter);
    if (isset($array[count($array) - 1])) {
      return $array[count($array) - 1];
    }
    return null;
  }
public static function last($list, $delimiter = ',')
  {
    $array = static::toArray($list, $delimiter);
    if (isset($array[count($array) - 1])) {
      return $array[count($array) - 1];
    }
    return null;
  }
Retourne le dernier élément de la liste

@param  string $list       Liste source
@param  string $delimiter  Séparateur
@return string