This function for example...
int preg_match_all ( string $pattern , string $subject [, array &$matches [, int $flags = PREG_PATTERN_ORDER [, int $offset
That is how the documentation for a function indicates arguments that are optional