Advertisement
asanchez75

PHP/arrays

Jan 7th, 2012
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. $test = array(
  2. 'title' => 'day',
  3. 'description' => 'xxxx',
  4. 'type' => 'MENU_ITEM_NORMAL',
  5. 'page callback' => 'yyy',
  6. 'access callback' => 'ssssss',
  7. );
  8.  
  9. $test += array(
  10. 'title' => 'hola mundo',
  11. 'description' => 'chau mundo',
  12. 'type' => 'MENU_CALLBACK',
  13. 'root' => 'test',
  14. );
  15.  
  16.  
  17. El segundo arreglo no sobreescribirá los indices que ya esten definidos en el primer arreglo. Solo agregará los que no están.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement