May 26, 200521 yr I have about 40 varibles declared in file var.php:<?$a[0][0]=1;$a[0][1]=2;..............$t[1][1]=26;?>and below is the code from file index.php that has problem:<?require 'var.php';?>......some code.....<?echo 'a = ' . $a[0][0];?>......some code....<?echo 'a = ' . $a[0][0];?>The problem is: I did not change any value of the variables, but some variables $a[0][0] at the bottom of index.php displayed nothing on the page . Can you help me with that?
May 30, 200521 yr Author on both pages try putting global $a; and then tell me if it works<{POST_SNAPBACK}>It doesn't work either .
May 30, 200521 yr Author This is the weirdest thing:<?$a[0][0]=1;?>..................................<?echo "a = " . $a[0][0];?>................................<?echo "a = " . $a[0][0];?>the result is:a = 1a =I got nothing for $a[0][0] at the bottom of the page .
May 31, 200521 yr Author I fixed the problem by changing $a to $aa.Thanks eXPerience-XP for your help .
Create an account or sign in to comment