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();
1
onetwothreefoursomething else