Shorter syntax for this array insertion

ardalk

New Member
Is there a better syntax for this array insertion in PHP? The array already has items and I'm adding items to it. I hate that I have to repeat the array name multiple times like this\[code\]$somearray[] = "new item 1"; $somearray[] = "new item 2"; $somearray[] = "new item 3"; \[/code\]
 
Back
Top