[ create a new paste ] login | about

Link: http://codepad.org/PQ2cZBzO    [ raw code | output | fork ]

PHP, pasted on Apr 24:
<?php

$nav_top = array(
    100 => 'Dashboard',
    200 => 'Sell',
    300 => 'Products',
    400 => 'History',
    500 => 'Customers',
    600 => 'Setup'
);

/**
 * Menu Navigation
 * @var array
 */
$nav_sub = array(
    201 => 'Current Sale',
    202 => 'Retrieve Sale',
    203 => 'Close Register',

    301 => 'Product',
    302 => 'Stock Control',
    303 => 'Price Books',
    304 => 'Types',
    305 => 'Suppliers',
    306 => 'Brands',
    307 => 'Tags',

    501 => 'Customer',
    502 => 'Group'
);
$new = $nav_top + $nav_sub;
var_dump($new);


Output:
array(18) {
  [100]=>
  string(9) "Dashboard"
  [200]=>
  string(4) "Sell"
  [300]=>
  string(8) "Products"
  [400]=>
  string(7) "History"
  [500]=>
  string(9) "Customers"
  [600]=>
  string(5) "Setup"
  [201]=>
  string(12) "Current Sale"
  [202]=>
  string(13) "Retrieve Sale"
  [203]=>
  string(14) "Close Register"
  [301]=>
  string(7) "Product"
  [302]=>
  string(13) "Stock Control"
  [303]=>
  string(11) "Price Books"
  [304]=>
  string(5) "Types"
  [305]=>
  string(9) "Suppliers"
  [306]=>
  string(6) "Brands"
  [307]=>
  string(4) "Tags"
  [501]=>
  string(8) "Customer"
  [502]=>
  string(5) "Group"
}


Create a new paste based on this one


Comments: