[ create a new paste ] login | about

Link: http://codepad.org/Exu1OZDk    [ raw code | output | fork ]

PHP, pasted on Jan 26:
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
//print welcome msg
echo ("welcome to our first PHP site");
$grade = 100;
if($grade = 100) {
echo("\n4.0");
print("\nmabuhay");
$first = 20;
$second = 21;
$max_num = $first > $second ? $first :$second;
echo "\nmy age is " . $max_num;
}
?>


Output:
1
2
3
4
welcome to our first PHP site
4.0
mabuhay
my age is 21


Create a new paste based on this one


Comments: