Try reading the PHP manual, people put in lots of effort for newcomers
to learn the PHP language.
http://php.net/array
To access a single array value:-
$myArray = array('email' => 'someone@xxxxxxxxxxx');
echo $myArray['email'];
Above would display:- someone@xxxxxxxxxxx
James
shining wrote:
Hi,
I am php beginner, I have a question:
in my index page, I firstly inlcude_once a A.php file, where i defined an
array, secondly I include another .php file named B.php, where I want to use
the array, I have claimed it as global type, but it seems I can't retrieve
any value from the array.
So I want to ask:
1. Is my use way right?
2. if I want to track a variable value how it changed between php functions,
besides I print out it's value, Is there any other way to do it?
Any suggestion and solution welcomed!
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php