I want to attach a php function for example: dtlan(text) < into <li> tag but i have one problem. i will show now my code and output:
echo "<a href=/".$array['id']."><li id='menu_".$array['id']."'>"
.dtlan($array['name'])."</li></a>";
output must be like this:
<a href='/2'> <li id='2'>wazaap </li></a>
actual output is:
wazaaap
<a href='/2'><li id='2'></li></a>
thats meens function runs first. and now my question how i can insert function into tags. thanks all and sorry for my ugly english :D
dtlandoes not return a string.