Horje Website
PHP Basic Math Operations – Learn Basic math operations – PHP Code

PHP Basic Math Operations – Learn Basic math operations

PHP Basic Math Operations - Learn Basic math operations - PHP Code


 
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>PHP Basic Math Operations</title>
  5. </head>
  6. <body>
  7. <?php
  8. echo 7 + 3 . "<br>"; // 0utputs: 10
  9. echo 7 - 2 . "<br>"; // 0utputs: 5
  10. echo 7 * 2 . "<br>"; // 0utputs: 14
  11. echo 7 / 2 . "<br>"; // 0utputs: 3.5
  12. echo 7 % 2 . "<br>"; // 0utputs: 1
  13. ?>
  14. </body>
  15. </html>



Try Your Self ->



Published:
September 25, 2020
Author:
admin
Category:
PHP Basic, PHP Source Code
Views:
32

This article was posted in PHP Basic, PHP Source Code and tagged , , . Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Horje © 2011 - 2022