Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End use function variables like wordpress Re: use function variables like wordpress

#80248
Rob MacKay
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"