[ create a new paste ] login | about

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

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

if (true) { function foo() { echo "php"; } }
else { function foo() { echo " sucks"; } }

foo();

if (true) {
    function bar() { echo "php"; }
} else {
    function bar() { echo " sucks"; }
}

bar();


Output:
1
php sucks


Create a new paste based on this one


Comments: