Home > PHP > Function > bcompiler > bcompiler_write_constant()

bcompiler_write_constant()

bcompiler_write_constant - Writes a defined constant as bytecodes

Syntax

bool bcompiler_write_constant (resource $filehandle, string $constantName)

Arguments

  • filehandle - A file handle as returned by fopen().
  • constantName - The name of the defined constant, as a string.

Description

Reads the bytecodes from PHP for an existing constant, and writes them to the open file handle.

Version

PHP PECL bcompiler >= 0.5

Return value

Returns TRUE on success or FALSE on failure.