I have to make a two-dimensional array based on the number of lets say car parts that is submitted on a form. Is it possible to declare an array of a certain size and THEN go back and fill it?
PHP arrays are dynamically allocated. There's no reason to create it ahead of time. Just start using the indexes as you need them:
$myNewVar[0] = 'data';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With