KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a way to only keep the first N (for example 10) elements of an array? I know there is array_pop , but is there a better, more elegant way?
Tags (comma-separated)
Save Edits
Cancel