Reply to Re: List all declared variables

Your name:

Reply:


Posted by mickysoft.org@gmail.com on 04/11/07 14:47

On Apr 11, 5:38 pm, Tyno Gendo <you@localhost> wrote:
> I don't really need to do this, but I was wondering. Is there some way
> of obtaining a list of all the variables that have been declared in a
> PHP script ?
>
> Ie. for globals you have $_GLOBAL, is there something that would let you
> know the name of all variables that have been declared?
>
> Ta.

get_defined_vars

(PHP 4 >= 4.0.4, PHP 5)

get_defined_vars - Returns an array of all defined variables
Description
array get_defined_vars ( void )

This function returns a multidimensional array containing a list of
all defined variables, be them environment, server or user-defined
variables, within the scope that get_defined_vars() is called.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация