Newbie question...
Posted: Tue May 27, 2008 2:10 pm
I'm really new to php (though I've been doing asp/.net for awhile now).
My question is how to I create a variable that I can use in a function without passing it to the function?
My question is how to I create a variable that I can use in a function without passing it to the function?
Code: Select all
$myVariable = "Something"
function myFunction()
{
echo($myVariable)
}