Home › Forums › Back End › use function variables like wordpress › Re: use function variables like wordpress
July 22, 2010 at 2:04 pm
#80248
Participant
you need to build a function then pass the data into it
for example:
Code:
function greet($name=NULL) {
return "Hello $name";
}
Then you call the function and pass in the name…
Code:
echo greet("Makeshift");
//Outputs: "Hello Makeshift"