I am PHP developer and I am trying to use following code but I don't know I am getting wrong error in PHP 7 but it's working fine at PHP 5:
$output = 5;
echo gettype($output);
The output is:
integerarray
Your code returns:
integer
for every version of PHP from 5.0.4 to 7.1.0.
You can test it online with this PHP Sandbox.
integer. Yourarrayoutput seems to come from another code.