?? 07c01-3.php
字號:
<?php// Declare an autoload function and register it using SPLfunction __autoload($classname) { @require_once "class-{$classname}.php";}// Now create another one.function another_class_autoload($classname) { @require_once "obj-{$classname}.php";}// Check __autoload() has been declared before registering our functionif (function_exists('__autoload')) { spl_autoload_register('__autoload');}// Now register our own function.spl_autoload_register('another_class_autoload');// Instantiate an object of class 'cd'. // This will make it try to load the file: class-cd.php or obj-cd.php$mydisk = new cd();?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -