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
Post a Comment