:: urbansheep (urbansheep) wrote,
:: urbansheep

[ Q ] Волшебные подчёркивания в PHP


The following cautionary notes are valid for PHP 4.

The name stdClass is used interally by Zend and is reserved. You cannot have a class named stdClass in PHP.

The function names __sleep and __wakeup are magical in PHP classes. You cannot have functions with these names in any of your classes unless you want the magic functionality associated with them. See below for more information.

PHP reserves all function names starting with __ as magical. It is recommended that you do not use function names with __ in PHP unless you want some documented magic functionality.


WTF? „Всё дело в волшебных пузырьках?“

  • Post a new comment


    Comments allowed for friends only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded