Function __global->assert_options

Definitions

sources_custom/phpstub.php

  • Set/get the various assert flags (and sometimes, options for them).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$option integer No No required parameter N/A N/A The option (ASSERT_ACTIVE, ASSERT_WARNING, ASSERT_BAIL, ASSERT_QUIET_EVAL, ASSERT_CALLBACK)
$value ?mixed No No Null N/A N/A The value for flag (null: N/A)

Returns

  • Old value (false: error)
  • Type: ~mixed
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Set/get the various assert flags (and sometimes, options for them).
 *
 * @param  integer $option The option (ASSERT_ACTIVE, ASSERT_WARNING, ASSERT_BAIL, ASSERT_QUIET_EVAL, ASSERT_CALLBACK)
 * @param  ?mixed $value The value for flag (null: N/A)
 * @return ~mixed Old value (false: error)
 */

function assert_options(int $option, $value = null)