➤ PHP allows you to define default argument values. In such case, if you don't pass any value to the function, it will use default argument value. For instance:
function addition( $x = 10 ){  
	echo $x + 10;  
}  
addition(40); // outputs :  50
addition(); // passing no value. outputs :  20
function addition( $x = 10, $y = 20 ){  
	echo $x + $y;  
}  
addition(5); // passing one argument. outputs :  25
addition(); // passing no value. outputs :  30
by Levani Makhareishvili
2 years ago
PHP
Function
1
Pro tip: use ```triple backticks around text``` to write in code fences