Function with default parameters
function printColored($Text, $Color="black")//Define function function
{
print("$Text");//Get the content and color of the string
}
printColored("This is a black word!");//Call function
print("
");
printColored("This is a blue word!", "blue");//Call function
print("
");
?>
http://www.bkjia.com/PHPjc/532022.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532022.htmlTechArticleFunction function with default parameters printColored($Text, $Color=black)//Define function { print( $Text );//Get the content and color of the string} printColored(This is a black word!...