Question about variables---Got it, thanks
| From: | Ken Bogucki | Date: | Wed, 05 Jul 2000 20:48:53 +0000 |
| Subject: | Question about variables---Got it, thanks | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-5050@lists.php.net to get a copy of this message | ||
Got it, thanks
>
>You might have to make them global, so:
>
>in 1.php3
>
>global $var1,$var2;
>$var1 = "Test";
>$var2 = 3;
>
>in 3.php3
>
>global $var1,$var;
>echo "Var 1: $var1, Var 2: $var2";
>
>That should work either way....
>
>Jeroen Latour
>
>>ken
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: php-general-
unsubscribe@lists.php.net
>>For additional commands, e-mail: php-general-
help@lists.php.net
>>To contact the list administrators, e-mail: php-list-
admin@lists.php.net
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-
unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-
help@lists.php.net
>To contact the list administrators, e-mail: php-list-
admin@lists.php.net
>
>