01-24-2008, 09:50 PM
|
#2 (permalink)
|
|
The Frequenter
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
|
If I understand you correctly, you can do this in PHP already (kinda)
For example:
PHP Code:
<?php
function sayHello($name)
{
echo 'Hello ' . $name;
}
sayHello($name = 'Alan');
// Outputs: Hello Alan
Although technically all this is doing is creating a new global variable called $name, then assigning it the value of 'Alan', then passing the $name variable to the sayHello() function.
Alan
|
|
|