Code
Diff
  • function hiThere ($name) {
    	echo 'Hello ' . $name . ', welcome to PHP!';
    }
    
    hiThere('Austin');
  • 11
    function hiThere ($name) {
    
    2
    	echo "Hello $name, welcome to PHP!";
    
    3
    };
    
    2+
    	echo 'Hello ' . $name . ', welcome to PHP!';
    
    3+
    }
    
    44
    5
    hiThere("Austin");
    
    6
    7
    # returns "Hello Austin, welcome to PHP!"
    
    5+
    hiThere('Austin');