Array syntax problem, the return value of the function is that the array cannot directly use [] to retrieve elements? Beginner & nbsp; PHP, using & nbsp; 5.3.13. A syntax problem is found during usage. Print & nbsp; explode ('. ', & nbsp; microtime (TRUE) [1]; explode () returns an array. I want to obtain this array syntax directly, the return value of the function is that the array cannot directly use [] to retrieve elements?
The younger brother is new to PHP and uses 5.3.13.
A syntax problem is found during usage.
Print explode ('.', microtime (TRUE) [1];
Explode () returns an array. I want to directly retrieve the second element of the returned value and output it, but php reports a syntax error.
If you first assign the return value to a temporary variable such as $ a, then $ a [1] is okay.
Is it necessary to use temporary variables in PHP? Or what other syntax should I use? Php
------ Solution --------------------
Variable transition must be used before php5.4
Php5.4 and later.
------ Solution --------------------
Php5.4 supports this feature ~