Home > PHP > Function > bcompiler > bcompiler_write_class()

bcompiler_write_class()

bcompiler_write_class - Writes an defined class as bytecodes

Syntax

bool bcompiler_write_class (resource $filehandle, string $className, string $extends)

Arguments

  • filehandle - A file handle as returned by fopen().
  • className - The class name, as a string.
  • extends

Description

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

Version

PHP PECL bcompiler >= 0.4

Return value

Returns TRUE on success or FALSE on failure.