[ create a new paste ] login | about

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

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

function sum35(n) {
    sum = 0;
    for(i=3;i<n;i+=3) {
        echo i;
    }
    
    
 return sum;   
}


echo sum35(10);

?>


Output:
1
2

Parse error: syntax error, unexpected ')', expecting '&' or T_VARIABLE on line 3


Create a new paste based on this one


Comments: