• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • ReflectionParameter::isOptional()

    (PHP 5 >= 5.0.3, PHP 7)

    Checks if optional

    说明

    publicReflectionParameter::isOptional(void) : bool

    Checks if the parameter is optional.

    参数

    此函数没有参数。

    返回值

    TRUEif the parameter is optional,otherwiseFALSE

    参见

    • ReflectionParameter::getName() Gets parameter name