PHP Part2 Array Function
PHP Part2 Array Function
<?php
function writeMsg() {
echo "Hello world!";
}
familyName("Jani");
familyName("Hege");
familyName("Stale"); Output:
Jani Refsnes.
familyName("Kai Jim"); Hege Refsnes.
familyName("Borge"); Stale Refsnes.
?> Kai Jim Refsnes.
Borge Refsnes.
setHeight(350);
setHeight(); // will use the default value
of 50
setHeight(135);
setHeight(80);
?>
<!DOCTYPE html>
<html> Output:
<body> Who’s Peter Griffin?
<?php
echo stripslashes("Who\'s Peter Griffin?");
?>
</body>
</html>
©1992-2012 by Pearson Education, Inc. All
Rights Reserved.
Strips a string from HTML, XML, and PHP tags.
(Demo)
(Demo)