PHP Classes

File: examples/store_ordercol.php

Recommend this page to a friend!
  Classes of Everton da Rosa  >  XtPHP  >  examples/store_ordercol.php  >  Download  
File: examples/store_ordercol.php
Role: Example script
Content type: text/plain
Description: Example script
Class: XtPHP
General purpose library of utility classes
Author: By
Last change:
Date: 7 years ago
Size: 451 bytes
 

Contents

Class file image Download
<?php

require '../store.php';
require
'../utils.php';

require
'store.php';

//store original
XtUtils::printr($store);

//a nova coluna. Precisa ter a mesma quantidade de linhas do store
$coluna = array('valor 1', 'valor 2', 'valor 3');

$storenew = XtStore::addCol($store, $coluna, 'nova');//coloca a nova coluna no final

$storenew = XtStore::orderCols($storenew, array('campo1', 'nova', 'cod'));//ordena as colunas
XtUtils::printr($storenew);

?>

For more information send a message to info at phpclasses dot org.