Hi, this might be a stupid question, but if I have a function that returns an array, do I need to declare an array before I assign the value of the function the variable? For example:
$newArr = array();
$newArr = valuefromfunction();
Or could I just do this:
$newArr= valuefromfunction();
Would the second way just pass the array into the variable? So I could call $newArr[4] if I needed?
Thanks for the help and time.