Ad
Code
Diff
  • function hiThere ($name) {
    	echo "Hello $name, welcome to PHP!";
    };
    
    hiThere("Austin");
    
    # returns "Hello Austin, welcome to PHP!"
    
    • echo "Hello, PHP!";
    • function hiThere ($name) {
    • echo "Hello $name, welcome to PHP!";
    • };
    • hiThere("Austin");
    • # returns "Hello Austin, welcome to PHP!"