I want to create an array, but I don't know how many elements it will have. I can do:
Code: Select all
$myArray = array();Code: Select all
$myArray[index] = 'value';PHP Notice: Undefined offset: 0 in ..
How can I declare myArray as array, and later set so many elements as I need. For example in Vb, "redim array(5)".
Thanks