If that works than the why does test file I tried previously to making the post return a $text does not exist error? <? echoo();
function test() { $text = "Testing"; global $text; } function echoo() { test(); echo $text; } ?> "Sqlcoders.Com Programming Dept" <[EMAIL PROTECTED]> wrote in message 009f01c20241$f05aaf80$6520fea9@dw">news:009f01c20241$f05aaf80$6520fea9@dw... > Sqlcoders.com Dynamic data driven web solutions > > ----- Original Message ----- > From: "David Duong" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: May 22 2002 04:21 PM > Subject: [PHP] Making varibles (more than one) with a function. > > I am aware that return can return strings but is their a set global or a > > function similar to return? > > hi there!, > There sure is, it's called global. > Usage: > global $variable_a; > global $variable_b; > global $variable_c; > ... > > HTH, > Dw. > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php