Visite Webhosting Latino, el site sobre alojamiento web.
note 70651 added to language.oop5 - Mombu the Php Forum
Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > note 70651 added to language.oop5
User Name
REGISTER NOW! Mark Forums Read

sponsored links

1 22nd December 05:16
External User
Posts: 1
Default note 70651 added to language.oop5

It's easy to create a simple emulation of the namespaces or packages support available in java, c++, etc...

class myPackage {
public function myPublicClassEmu() {
private function myPrivateClassEmu() {
protected function myProtectedClassEmu() {
function myPrivateFunction() {
echo 'test';

return myPrivateFunction();

$MyPackage = new myPackage(); // or: new myPackage

This will output:

Off course this isn't the same as the namespaces in C++, but does provide the same functionality idea
Server IP:
Probable Submitter:
Manual Page --
Edit --
Del: integrated --
Del: useless --
Del: bad code --
Del: spam --
Del: non-english --
Del: in docs --
Del: other reasons--
Reject --
Search --
  Reply With Quote

  sponsored links


Thread Tools
Display Modes

Copyright 2006 - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -