[]just indicates that the argument is optional. In your example:
string basename ( string $path [, string $suffix ] )
This is a function basenamethat takes an argument $pathand, optionally, an argument $suffix. He returns string.
There may also be an initial value, as in your second example:
array fgetcsv ( resource $handle [, int $length = 0 [, string $delimiter = "," [, string $enclosure = '"' [, string $escape = "\" ]]]] )
In this case, the argument $lengthis optional, and the value 0will be used if it is not specified.
source
share