Function __global->cms_ini_set

Definitions

sources/global.php

  • Sets the value of a configuration option, if the PHP environment allows it.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$var string No No required parameter N/A N/A Config option
$value string No No required parameter N/A N/A New value of option

Returns

  • Old value of option (false: error)
  • Type: ~string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Sets the value of a configuration option, if the PHP environment allows it.
 *
 * @param  string $var Config option
 * @param  string $value New value of option
 * @return ~string Old value of option (false: error)
 */

function cms_ini_set(string $var, string $value)
 

sources/minikernel.php

  • Sets the value of a configuration option, if the PHP environment allows it.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$var string No No required parameter N/A N/A Config option
$value string No No required parameter N/A N/A New value of option

Returns

  • Old value of option (false: error)
  • Type: ~string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Sets the value of a configuration option, if the PHP environment allows it.
 *
 * @param  string $var Config option
 * @param  string $value New value of option
 * @return ~string Old value of option (false: error)
 */

function cms_ini_set(string $var, string $value)