PHP Classes

File: examples/store_addrow.php

Recommend this page to a friend!
  Classes of Everton da Rosa  >  XtPHP  >  examples/store_addrow.php  >  Download  
File: examples/store_addrow.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: 496 bytes
 

Contents

Class file image Download
<?php

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

require
'store.php';

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

//A nova coluna
$new = array(
   
'cod' => 8
   
,'campo1' => 'novo nome'
);

$storenew = XtStore::addRow($store, $new);//Nova linha no final
XtUtils::printr($storenew);

$storenew = XtStore::addRow($store, $new, 'first');//Nova linha no inicio
XtUtils::printr($storenew);

$storenew = XtStore::addRow($store, $new, 2);//Nova linha na 3ª posição
XtUtils::printr($storenew);

?>

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