php declare variable in function code example Example: php variable $name = "Josh"; //$varname = value