On PHP, you can add more elements to your array with different methods. My preferred method is:
Can I do something similar with C++? Or how can I add more elements to my arrays?PHP Code:
person = "James";
person = "Andy";
person = "Nick"; //Notice there is no number inside the brackets. That's how I add elements to my arrays on PHP.