Return a component of the current path. When viewing a page http://www.example.com/foo/bar and its path would be "foo/bar", for example, _arg(0) returns "foo" and _arg(1) returns "bar"
Parameters | |||
---|---|---|---|
mixed
|
$index = null |
# | |
string
|
$path = null |
# |
Returns | |
---|---|
mixed
|