Overview

Namespaces

  • BN
    • Collections
    • Compiler
      • Grammar
      • Parser
        • Operator
        • Token
      • Postfix
        • Operands
        • Operator
        • Token
      • Scanner
        • Converter
      • Token
  • Demo
  • None

Functions

  • bnPhpAutoload
  • Overview
  • Namespace
  • Function
  • Tree
 1: <?php
 2: 
 3: /**
 4:  * Register autoload function for BN-PHP
 5:  */
 6: spl_autoload_register('bnPhpAutoload');
 7: 
 8: function bnPhpAutoload($class)
 9: {
10:     if (strpos($class, 'BN\\') === 0) {
11:         $classPath = str_replace('\\', DIRECTORY_SEPARATOR, $class);
12:         require_once(__DIR__ . "/../lib/{$classPath}.php");
13:     }
14: }
15: 
BN-PHP - Big Number data type for PHP API documentation generated by ApiGen 2.8.0