KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How would I create an array in PHP that has $x empty elements? The $x is unknown and varying value. For example, if I wanted to create an array of 3 elements, I could just do: $array = array(null,null,null); However, I don't know what $x is and there could be million elements, I need to do this automatically.
Tags (comma-separated)
Save Edits
Cancel