Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not sure exactly what you were trying. Using the [] syntax is common for appending elements (using the next available key). Otherwise you can use the array functions (array_push/pop/etc). As for plain operators, here is how PHP handles array operators: http://www.php.net/manual/en/language.operators.array.php


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: