ここで正規表現の助けが必要です。
<%me%>で囲まれた部分文字列が独自のスロットに入るように、PHPが配列のセクションで文字列を分割できるようにしたい。
たとえば、
Hi there how are <%me date(); %> => {"Hi there how are ", "<%me date(); %>}
Hi there how are you<%me date(); %> => {"Hi there how are you", "<%me date(); %>}
Hi there how are you<%me date(); %>goood => {"Hi there how are you", "<%me date(); %>, "good"
Hi there how are you<%me date(); %> good => {"Hi there how are you", "<%me date(); %>}, " good"}
空白はタグの解析を停止しないことに注意してください。