Function __global->header

Definitions

sources_custom/phpstub.php

  • Send a raw HTTP header.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$string string No No required parameter N/A N/A The header to send
$replace_last boolean No No True N/A N/A Whether to replace a previous call to set the same header (if you choose to not replace, it will send two different values for the same header)

Preview

Code (PHP)

/**
 * Send a raw HTTP header.
 *
 * @param  string $string The header to send
 * @param  boolean $replace_last Whether to replace a previous call to set the same header (if you choose to not replace, it will send two different values for the same header)
 */

function header(string $string, bool $replace_last = true)