3
Guys, I have a mistake that I can’t find the solution to. I have two accommodations on the same site Hostgator, in a hosting my application is all right and working. But I had to migrate the application to another address, in other words migrate to a sub-domain, until then ok.
After I migrated I realized I was making a mistake in the following statement:
$arr = [];
So I changed the statement to
$arr = array();
This way it worked in parts, but I realized that is giving error in this type of statement, why?
Another problem is being in this following item:
Parse error: syntax error, unexpected '[', expecting ')' in /
On the line of this error is the following statement:
if(!empty($ClientesRef->getNome()[0]))
I check if the first position of the array saved in this method is different from empty, the error started to appear only when I migrated to the Sub-domain.
Someone’s been there and can help me?
Thanks!!!
In error, which appears after the
in /
? Does the error say which line is the error on? What’s the previous and next line?– Sergio
Which php version you use?
– rray