Function with return value
function makeBold($inputText)//Define function makeBold() function
{
$boldedText = "";
$boldedText .= $inputText;
$boldedText .= " ";
return($boldedText);//Return variable $boldedText
}
print("This line is not emphasized!!!
");//Print the string directly
print(makeBold("This line is emphasized!!!") . "
");//Call function makeBold() function
print("This line is not aggravated!!!
");//Print the string directly
?>
http://www.bkjia.com/PHPjc/532021.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532021.htmlTechArticleFunction function with return value makeBold($inputText)//Define function makeBold() function { $boldedText = ; $boldedText .= $inputText; $boldedText .= ; return($boldedText);//Return variable...