<?php include "BasicLanguageParser.php"; $qry = 'IF (SOMETHING > 100) THEN DO THIS ELSE IF (SOMETHING =SOMTHING) THEN DO WATEVER ELSE DO THAT END'; $lang = new BasicLanguageParser(); print_r($lang->prepareParser($qry)); ?>