PHP Classes

File: examples/examplereserved.php

Recommend this page to a friend!
  Classes of Jorge Castro   PHP Mini Language   examples/examplereserved.php   Download  
File: examples/examplereserved.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Mini Language
Execute string of a simple language conditions
Author: By
Last change:
Date: 4 years ago
Size: 365 bytes
 

Contents

Class file image Download
<?php
use eftec\minilang\MiniLang;

include
"../lib/MiniLang.php";

$variables=['field1'=>1]; // we define regular variables
$callback=new stdClass();
$mini=new MiniLang($callback,$variables);
$mini->separate("when true=true then field1=timer()"); // we prepare the language

$mini->evalAllLogic(); // we set the variables and run the language
var_dump($variables);