I searched on google and on stackoverflow for this but i couldn't find any results. What i want is to know if you can execute a php function from a string. Why ? I have a function that creates a table after an array. Thing is i want to, for example format a unix timestamp into a date but dynamically. Example
'Register date' => array(
"<?php date('h:m:i',{RegDate}); ?>"
),
Is it possible ? (I already have a function that converts {RegDate} to the respective row,so the only thing i need is to somehow execute the function date,if possible)
I tried eval and even just a simple echo,but every time htmls comments my php tags and they become
<!--?php date('h:m:i',1362159376); ?-->