[ create a new paste ] login | about

Link: http://codepad.org/tjfYX1Ak    [ raw code | output | fork | 1 comment ]

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

    function myfunction() {
       $array = array('one', 'two', 'three', 'four');
       $concat = '';
       foreach($array as $i) {
         $concat .= $i;
       }
       return $concat;
    }
    
    function myfunction2() {
       return myfunction() . "something else";
    }

echo myfunction2();


Output:
1
onetwothreefoursomething else


Create a new paste based on this one


Comments:
posted by dfd on Jan 11
sdfd
reply