"Jas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> So something like this?
> function database_connection() {
>    global = $cfg['hostname'],$cfg['username'],$cfg['password'];
>    global = $cfg;

>From that page that was linked in the previous post:
<?php
$a = 1;
$b = 2;

function Sum()
{
   global $a, $b;

   $b = $a + $b;
}

Sum();
echo $b;
?>

Notice a difference between how these two examples declare globals.

  -- Rob

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to