Son satırdaki

<? function i($e,$k='$v'){

olan kısmı

<?php function i($e,$k='$v'){

bu şekilde değiştirir misin?