Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
LaravelBook
Laravel4Powerpack
Str
segments
LaravelBook\Laravel4Powerpack\Str::segments PHP Method
Str Class Documentation
Show file
Open project: laravelbook/laravel4-powerpack
segments()
public
method
Return the "URI" style segments in a given string.
public
segments
(
string
$value
) :
array
$value
string
return
array
public function segments($value) { return array_diff(explode('/', trim($value, '/')), array('')); }
Str
ascii
camel
camelCase
classify
contains
endsWith
extension
finish
is
length
limit
limitExact
lower
plural
pool
quickRandom
random
segments
singular
slug
snake
startsWith
title
upper
upperWords
words
wordwrap