You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A curly brace {} is for function/method or whole class bodies. It also is for enclosing code in if() or else() blocks and other control/loop blocks, like while(), for(), foreach() et cetera. Replacing them with brackets ([]) will tell PHP to interpret $_iflags as an array. A white empty page indicates a fatal error which means you should reverse your changes and check log files.
$_iflags is of type string here and access on its parts also known as "sub-strings" through curly braces is no longer supported by newer PHP versions. Someone needs to rewrite this code to use substr() instead.
Plus all these type castings (int)(bool) looks odd to me.
Fatal error: Array and string offset access syntax with curly braces is no longer supported in D:\D\htdocs\index.php on line 180
what's a curly braces?
I replaced the $_iflags{$i} with $_iflags[$i] but now the page loads as a blank white page.
The text was updated successfully, but these errors were encountered: