<?php function rec($i) { if($i < 10) { $i++; return rec($i); } else return $i; } echo rec(0); ?>
<?php $str = "some wtf"; echo htmlentities($str, ENT_QUOTES, $charset); //$charset = utf-8,chcp1251,etc ?>