well, thanks for your replies, but i explain my problem insuffieciently:
$ar array("test", "bla", "xyz <? if($var=="example") { echo "ok"; } xyz");
means i got some text before and after the "if" ... is there no other way than doing it like chris said? it's kind of long winded in my case...
thx