[ create a new paste ] login | about

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

PHP, pasted on Sep 21:
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

function myprint($val, $opt = null) {
if ($opt != null) {
echo $val . " " . $opt;
}
}

$test = true;

myprint("blah", ($test ? "yes" : null));

?>


Output:
1
blah yes


Create a new paste based on this one


Comments: