List predefined variables
- From: "Álvaro G. Vicario" <alvaroNOSPAMTHANKS@xxxxxxxxxxxxxx>
- Date: Thu, 02 Oct 2008 13:24:42 +0200
Is there any way to tell PHP predefined variables ($GLOBALS, $argv, $argc, $_GET, $_POST…) from *global* user-defined variables? Neither $GLOBALS nor get_defined_vars() put user data apart.
I’m writing a class to generate PHP definition files for syntax highlighting with two features:
1. It takes data from current install (e.g., you get function names from loaded extensions).
2. You can choose whether to include user data or not.
It’s been very easy with functions and constants but I can’t figure out how to deal with variables, rather than hard-coding the names of predefined vars... I’ve kind of automated this hard-coding but it still smells of lame workaround.
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
.
- Follow-Ups:
- Re: List predefined variables
- From: C. (http://symcbean.blogspot.com/)
- Re: List predefined variables
- Prev by Date: Re: POSTing to XML...
- Next by Date: Re: I need advice on how to create thousands of articles with PHP or else
- Previous by thread: Re: Double backslashes \\ in strings
- Next by thread: Re: List predefined variables
- Index(es):