[ create a new paste ] login | about

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

PHP, pasted on Nov 22:
1
2
3
4
5
6
7
8
9
10
<?php
$items = array(1,2,3);

foreach($items as &$item) {
    // do anything
}

foreach($items as $item) {
    echo $item;
}


Output:
1
122


Create a new paste based on this one


Comments:
posted by sporkland on Jan 2
That is a horror show.
reply