You are here: Re: PHP Fatal error: Cannot use string offset as an array « PHP Programming Language « IT news, forums, messages
Re: PHP Fatal error: Cannot use string offset as an array

Posted by Jim Michaels on 11/03/68 11:41

"Jim Michaels" <NOSPAMFORjmichae3@yahoo.com> wrote in message
news:L8udndm2vp5Xm5fZRVn-jg@comcast.com...
> [19] => Array
> (
> [tag] => UML:CLASS
> [type] => open
> [level] => 5
> [attributes] => Array
> (
> [XMI.ID] => .:00000000000008EC
> [NAME] => quiz_batteries
> [VISIBILITY] => public
> [ISSPECIFICATION] => false
> [ISROOT] => false
> [ISLEAF] => false
> [ISABSTRACT] => false
> [ISACTIVE] => false
> )
>
> [value] =>
>
> )
>
> $xmlarray[$x]['tag']['attributes']['NAME']
>
> gives me
>
> C:\prj\quiz>php argouml2sql.php quiz.xmi
> PHP Fatal error: Cannot use string offset as an array in
> C:\prj\quiz\argouml2sql.php on line 32
>
> I also get the same error on
> $id=$xmlarray[$x]['tag']['attributes']['XMI.ID'];
>
>
> what am I doing wrong?
>
figured it out.
$xmlarray[$x]['attributes']['NAME']
$id=$xmlarray[$x]['attributes']['XMI.ID'];

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация