私は、テキストブロックが次のような情報を保存するタグ付け可能なレポートシステムに取り組んでいます:
This is a line with a {TAG} . The {TAG} will be replaced with normal text via str_replace.
{if 1==1}
I would like to be able to do if statements like this.
{/if}
{TAG} は簡単に置き換えられますが、テキスト ブロックを解析して if/else ステートメントを処理する方法はありますか?