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 Reynier Blanco  >  ubarray  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: example
Class: ubarray
Generate arrays with a special structure
Author: By
Last change:
Date: 5 years ago
Size: 1,370 bytes
 

Contents

Class file image Download
<?php
include_once("array.php");
include_once(
"option.php");
include_once(
"see.php");


$array_arr = array(
        
"key1" => array('value' => 0'text' => "a"),
        array(
'value' => 1'text' => "b"),
        array(
'value' => 2'text' => "c"),
        array(
'value' => 3'text' => "d"),
        array(
'value' => 4'text' => "e"),
        array(
'value' => 5'text' => "f"),
        array(
'value' => 6'text' => "g"),
        array(
'value' => 7'text' => "h"),
        array(
'value' => 8'text' => "i")
    );

$array_obj = array(
        new 
option(10,"celda a"),
        new 
option(11,"celda b"),
        new 
option(12,"celda c"),
        new 
option(13,"celda d"),
        new 
option(14,"celda e"),
        new 
option(15,"celda f"),
        new 
option(16,"celda g"),
        new 
option(17,"celda h"),
        new 
option(18,"celda i")
    );

//decomentarear el ejemplo que se desee ver
//See::p(ubArray::add_elem($array_arr,45));
//See::p(ubArray::add_elem($array_arr,array("key" => 45)));
//See::p(ubArray::array_keys_not_numeric($array_arr));
//See::p(ubArray::array_keys_object($array_obj,"get__value",13));
//See::p(ubArray::choose_position($array_obj,3));
//See::p(ubArray::dimention($array_arr));
//See::p(ubArray::exclude_elem($array_arr[0],1));
//See::p(ubArray::filter_by_key($array_arr,"value",true));
//See::p(ubArray::filter_by_value($array_obj,"get__value",array(12,16,18)));
See::p(ubArray::filter_by_value($array_obj,"get__value",array(12,16,18),false));
?>