php define variable in function code example Example: how to make a variable in php $varName = "Hello, World";