I have seen some code from Stack Overflow. It confused me a lot. I just don\'t know whether some part is missing or not.
The code is as follows:
$ch = cu
When a value is first assigned to $out2
, it is initialized as whatever datatype in needs to be. In this case, an array.
In short, yes.
PHP isn't (at the moment) that explicit about declaring data types when creating variables - unlike other languages, although I'm sure PHP are changing their ways.
Although you can do this, it's advised (good practice) to declare the data type of the variable before assigning value(s) to it.