Re: builtin functions / constructs
| From: | Stefan Livieratos | Date: | Fri, 23 Mar 2001 14:54:45 +0000 |
| Subject: | Re: builtin functions / constructs | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-49818@lists.php.net to get a copy of this message | ||
"Hartmut Holzgraefe" <hartmut@six.de> schrieb im Newsbeitrag
news:3ABB4AC0.7D5952D1@six.de...
> Stefan Livieratos wrote:
> >
> > Hi,
> >
> > "Cynic" <cynic@mail.cz> schrieb im Newsbeitrag
> > news:5.0.0.25.2.20010322195754.02374c88@mail.cz...
> > > Is there a way to get names of available "language constructs"
> > > in a PHP program? I mean, I don't think there's currently
> > > a way a PHP script can know if e. g. zend_version() is available
> > > (other than function_exists( 'zend_version' ), that is).
> > > Is something along get_builtin_constructs() possible?
> >
> > Take a look at get_defined_functions(),
> >
> > http://www.php.net/manual/en/function.get-defined-functions.php .
>
> does this return things like unset()?
> no it doesn't!
>
> there's a difference between builtin functions and language constructs
You are right of course. I was misled by the example Cynic used. On the
other hand I don't know how useful a function that returns all
language constructs would be. Could someone give me an example for
using such a function in a sensible way?
--
Stefan Livieratos stefan@livieratos.com
http://www.ferry24.de