PHP Online Compiler
Example: PHP program to the sum of two integer values with minimum variables
C
C++
C#
Java
Python
PHP
main.php
STDIN
Run
<?php // PHP program to the sum of two integer values with minimum variables $p = 5; $q = 7; echo "\nResult:: " . $p . " + " . $q . " = "; $p = $p + $q; echo $p; ?>
Output
Clear
ADVERTISEMENTS