Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #3536 > unrolled thread

PHP Extension Namespaces

Started byPhilipp Kraus <philipp.kraus@flashpixx.de>
First post2011-10-23 15:57 +0200
Last post2011-10-23 15:57 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.php


Contents

  PHP Extension Namespaces Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-23 15:57 +0200

#3536 — PHP Extension Namespaces

FromPhilipp Kraus <philipp.kraus@flashpixx.de>
Date2011-10-23 15:57 +0200
SubjectPHP Extension Namespaces
Message-ID<j816h5$vr5$1@online.de>
Hello,

I would like to create a PHP extension with C++. The basic functional 
works fine. My C++ classes are organized within namespaces.
So each C++ class sould be got a equal PHP class. In this case I would 
like to translate the C++ namespaces to a PHP
namespace eg:

C++:

namespace myspace {
     class myclass {}
}

should be create in PHP:

<?
namespace myspace;
class myclass {}
?>

(How) Can I create a  namespace in a extension?

Thanks

Phil

[toc] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web