Array Add Sufffix


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function array_add_value_suffix($array, $suffix) {
  2. foreach($array as $key => $value) {
  3. $array[$key] = $value.$suffix;
  4. }
  5.  
  6. return $array;
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.