[ create a new paste ] login | about

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

martin@mustbebuilt.co.uk - PHP, pasted on Oct 22:
1
2
3
4
5
6
7
8
<?php
     if($weight > 10){
        $postage = 4.5;
    }else{
        $postage = 2;
    }
echo "Postage of $postage";
?>


Output:
1
Postage of 2


Create a new paste based on this one


Comments: