[ create a new paste ] login | about

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

PHP, pasted on Feb 8:
1
2
3
4
5
6
7
8
<?php

function do_something_that_returns_an_array() {
    echo 'I have been called!'; 
    return array('i am an', 'array');
}

foreach(do_something_that_returns_an_array() as $value) { }


Output:
1
I have been called!


Create a new paste based on this one


Comments: