PHP Classes

File: plugin/if.php

Recommend this page to a friend!
  Classes of bassam alessawi   Sfhati PHP engine   plugin/if.php   Download  
File: plugin/if.php
Role: Auxiliary script
Content type: text/plain
Description: Class source
Class: Sfhati PHP engine
Template engine that generates PHP compiled files
Author: By
Last change: Update of plugin/if.php
Date: 2 days ago
Size: 392 bytes


Class file image Download
  use like [if:"expr","statement"end if]
  or like [if:"expr","statement [else] statement"end if]

function if_SYNTAX($vars) {
    foreach (
$vars as $v => $var) {
$vars[$v] = $syntaxcode->Syntax($var);
$vars[1] = str_replace('[else]', "<?php }else{ ?>", $vars[1]);
   <?php if (
$vars[0]) { ?>
<?php } ?>