how to obtain all variable in php file
Posted: Tue Jul 06, 2010 8:49 pm
hello everyone,ask a question.
have a php file.
have a test. one of question is :
have a function that similar "var_dump,print_r" can export variable , but the difference is export all of variable in the php file.
like use a function export
this question is trouble.I try to read php file and use ereg search variable.but the answer isn't this. how to think everyone ?
have a php file.
Code: Select all
<?php
$a = 1;
$b = 'hello world';
$_SESSION['id'] = 31;
$_GET['string'] = 'intnumber';
have a function that similar "var_dump,print_r" can export variable , but the difference is export all of variable in the php file.
like use a function export
Code: Select all
[int]a=1
[string]b='hello world'
[int]$_SESSION['id']=31
[string]$_GET['string'] = 'intnumber';