Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Marcelo Octane FX  >  ObjectVar  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: how to use :B
Class: ObjectVar
Manage variables with dynamic names
Author: By
Last change:
Date: 5 years ago
Size: 614 bytes
 

Contents

Class file image Download
<?php
require("class.objectvar.php");
echo 
"<pre>";
$var1 = new ObjectVar;

$var1->create("objectname","people1");
echo 
$var1->objectname."<br>";

$var1->create("arr1",Array("Name"=>"Octane Fx","beauty"=>true,"age"=>36,"birthday"=>Array("day"=>14,"month"=>"november")));
print_r($var1->arr1);

$var1->arr1["Name"]="Marcelo Octane FX";
$var1->arr1["beauty"]=false;
print_r($var1->arr1);

$var1->create("eye","blue");
echo 
$var1->eye."<br>";

$var1->arr1["birthday"]["day"]="15";
$var1->arr1["birthday"]["month"]="september";
$var1->arr1["beauty"]=true;
print_r($var1->arr1);
echo 
"</pre>";
?>