how to print a var in php code example Example 1: print in php print_r(""); Example 2: how to make a variable in php $varName = "Hello, World";