I know I could just try this but I am not near my PC with PHPed right now.
I am thinking about switching from php4 to php5, mainly because of the OOP.
If I delcare a function for private in php5, will it still show up in the code completion list when it is out of scope ?
An example
class someclass
{
private function world()
{
return " world";
}
public function helloWorld()
{
echo "Hello" . $this->world();
}
}
$myClass = new someclass(); |
When I now write $myClass->
Will the lookup window now display both functions (world and helloWorld) or will only the function available to me (the public helloWorld be displayed. Since I am out of scope from the class only the public functions should be displayed.
In PHP4, there was no such access declarations, but they exists in PHP5, so is PHPed clever enough to understand them ?