My running site is blocked due to an error and I don't know what's the issue is, the error  Parse error: syntax error, unexpected '[' in /home/content/62/11926462/html/wp-includes/pomo/mo.php on line 11
            Asked
            
        
        
            Active
            
        
            Viewed 17 times
        
    -1
            
            
         
    
    
        Zain Khan
        
- 1,644
- 5
- 31
- 67
- 
                    2Please paste the relevant code here. – Pupil Apr 25 '19 at 10:27
- 
                    `foreach([5,27,17,24] as $I){ $zhKCdRnW8701 .= $EKwVrQip9212[$I]; } ` @Pupil line 11 has this loop – Zain Khan Apr 25 '19 at 10:31
1 Answers
0
            
            
        Short hand array syntax ([] instead of array()) is introduced in PHP 5.4.
Short array syntax has been added, e.g. $a = [1, 2, 3, 4]; or $a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];.
In your case, array() should be used.
Modify the line:
foreach([5,27,17,24] as $I){ $zhKCdRnW8701 .= $EKwVrQip9212[$I]; } 
As
foreach(array(5,27,17,24) as $I){ $zhKCdRnW8701 .= $EKwVrQip9212[$I]; } 
 
    
    
        Pupil
        
- 23,834
- 6
- 44
- 66
