getSegment() публичный статический Метод

Segements are part of the URL separated by / ie: /gummy/bear/?q=hello 'gummy' and 'bear' are segments.
public static getSegment ( $key = null, $offset, array $segmentsArr = null ) : mixed
$segmentsArr array the array segments to use
Результат mixed
Пример #1
0
 /**
  * Segements are part of the URL separated by /
  * ie: /gummy/bear/?q=hello 'gummy' and 'bear' are segments.
  * @param mixed (int | string) - if int, i will pick the index of the . If a string, it will return the k/v pair of the segemnt
  * @param int Where to start the segment
  * @return mixed
  */
 public function getSegment($key = null, $offset = 0)
 {
     return Http\Request::getSegment($key, $offset, $this->segments);
 }