<?php class Test{ public function asdf(){ foreach( array( 1, 2, 3, 4, 5 ) as $k ){ if( ($k === 3 ) ){ $a = 'asdf'; } } return $a; } } $t = new Test(); var_dump( $t->asdf() );
You have javascript disabled. You will not be able to edit any code.