PHP Classes

File: exercise/examplearray2.php

Recommend this page to a friend!
  Packages of Jorge Castro   Chaos Machine One   exercise/examplearray2.php   Download  
File: exercise/examplearray2.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Chaos Machine One
Generate random data that obeys to formulas
Author: By
Last change:
Date: 9 months ago
Size: 636 bytes
 

Contents

Class file image Download
<?php

use eftec\chaosmachineone\ChaosMachineOne;

use
eftec\minilang\MiniLang;
include
"../vendor/autoload.php";

$chaos=new ChaosMachineOne();
$chaos->setDictionary('_index',100);
                                  
include
"../lib/en_US/Person.php";



// skip next day
// skip next workingday
// skip next weekend
// skip next monday
// skip add 8 hours
// skip next month (first month)


$chaos->table('table',PersonContainer::$firstNameMale,"original")
    ->
field('name','string','local','',0,200)
    ->
gen('when always then name.value=original.value')
    ->
showTable(['name','original'])
    ->
run();
var_dump($chaos->getDictionary());