Здравствуйте, Dr.Death, Вы писали:
DD>Здравствуйте, ThE0ReTiC, Вы писали:
TER>>Здравствуйте, Dr.Death, Вы писали:
DD>>>Господа!
DD>>>На досуге просматривал классы PEAR и наткнулся на такую вот конструкцию:
DD>>>DD>>>function &addElement($element)
DD>>>
DD>>>А что делат символ & перед началом названия функции?
DD>>>В доках я что то ни чего не нашел по этому поводу. Может дадите ссылку где об этом написано в документации.
TER>>http://www.php.net/manual/en/language.references.pass.php
TER>>http://www.php.net/manual/en/language.references.return.php
DD>Читаю:
DD>DD>They are not like C pointers, they are symbol table aliases.
DD>
DD>Как понять "symbol table aliases"?
Так а до конца абзац дочитать? =)
The most close analogy is with Unix filenames and files — variable names are directory entries, while variable contents is the file itself.
References can be thought of as hardlinking in Unix filesystem.