View Single Post
Old 01-24-2008, 09:50 PM   #2 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Default

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
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote