[] operator not supported for strings
OnYou can fix this error check the above code you have defined- $var[]=””; To $var[]=array();
SWCodes- PHP, JavaScript, CakePHP, Laravel, Angularjs2, Angularjs3, Angularjs4, HTML4, HTML5, CSS, CSS3, Nodejs, Codeignitor, Vuejs Interview Question and Answers for fresher and experience,Software and Web development
You can fix this error check the above code you have defined- $var[]=””; To $var[]=array();