PHP Illegal String Offset - But Array is Set -


maybe trivial problem - im stuck. have array, printed out print_r

array ( [code] => 200 [content] => array ( [0] => array ( [belegid] => xxxx [belegdatum] => 1453330800 [lager] => abclager [transporteur] => 0 ) ) ) 

when try access array via

if($auftrag['code'] == "200"){do something} 

i error

warning: illegal string offset 'code' in 

can enlight me please?

cheers

i found error. human working overtime mistake.

i doing print_r array - printed out properly. wasn t saving result of json decode $auftrag.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -