I've seen some php functions named, such as:
Code: Select all
$class->_database()
$class->_print()My guess was in PHP4, there weren't private functions, so do underscore naming denote private functions?
Thanks![/quote]
Moderator: General Moderators
Code: Select all
$class->_database()
$class->_print()Sometimes, they are called magic methods in PHP5, but _print() isn't one of them, and they always start with two underscores, like so: __sleep(). Otherwise, it's just a custom function, and in this case probably a replacement for print().stryderjzw wrote: My guess was in PHP4, there weren't private functions, so do underscore naming denote private functions?