hello there.. i just want to ask..is it possible to create a CLASS in run time?
example:
$class = 'myclass';
$instance = new $class();
in which my myclass is not yet built.
creating class in runtime
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- harsha
- Forum Contributor
- Posts: 103
- Joined: Thu Jul 11, 2002 1:35 am
- Location: Bengaluru (Bangalore) > Karnataka > India
are you trying to create a class code and dump into a php file using/by running another php script?
if that is the case then please take a look at this script:
http://wsdl2php.svn.sourceforge.net/vie ... iew=markup
it reads the SOAP (XML) schema and generates php code and writes it into new php files.
if that is the case then please take a look at this script:
http://wsdl2php.svn.sourceforge.net/vie ... iew=markup
it reads the SOAP (XML) schema and generates php code and writes it into new php files.
Take a look at Classkit: http://www.php.net/manual/en/ref.classkit.php