Advertisement
Guest User

Untitled

a guest
Jun 6th, 2014
865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. $arrCurrent = array('wert_1', 'wert_2', 'wert_3');
  2. $arrNew = array_duplicate($arrCurrent , 1);
  3.  
  4. // Ergebnis:
  5. // Array
  6. // (
  7. // [0] => wert_1
  8. // [1] => wert_2
  9. // [2] => wert_2
  10. // [3] => wert_3
  11. // )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement