Function with default argument value


SUBMITTED BY: henry1874w

DATE: June 17, 2017, 1:03 p.m.

FORMAT: Text only

SIZE: 217 Bytes

HITS: 249

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <?php
  5. function setHeight($minheight = 50) {
  6. echo "The height is : $minheight <br>";
  7. }
  8. setHeight(350);
  9. setHeight();
  10. setHeight(135);
  11. setHeight(80);
  12. ?>
  13. </body>
  14. </html>

comments powered by Disqus