Can\'t figure what is wrong here. Read what folks are saying here: http://informationideas.com/news/2006/06/14/fatal-error-cannot-use-string-offset-as-an-array-in/ and her
To overcome this error at first check whether its an array or net then do array elements manipulat