Posted By

pruntrut on 05/14/12


Tagged

phparray


Versions (?)

change something in array recusively


 / Published in: PHP
 

change something in array recusively

  1. function myFunc($item, $key) {
  2. if ($key == 'something')
  3. {
  4. $item = // do what you want with $item;
  5. return $item ;
  6. }
  7. }

Report this snippet  

You need to login to post a comment.