Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Function with default argument value
SUBMITTED BY:
henry1874w
DATE:
June 17, 2017, 1:03 p.m.
FORMAT:
Text only
SIZE:
217 Bytes
Raw
Download
Tweet
HITS:
249
Go to comments
Report
<!DOCTYPE html>
<html>
<body>
<?php
function setHeight($minheight = 50) {
echo "The height is : $minheight <br>";
}
setHeight(350);
setHeight();
setHeight(135);
setHeight(80);
?>
</body>
</html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus