• Home
  • Map
  • Email: mail@besthelp.duckdns.org

Fatal error uncaught error cannot use object of type

Use json_ decode( $ src, true) to get associative array. This is preferred way, as currently you get mixed arrays and objects and you may end up in crazy house, trying to work with these : ) Alternatively use - > operator to get. If you have identifiers like from- date ( the hyphen would cause a PHP error when using the above method) you have to write:. When we use json_ decode( ) ;, we get an object of type stdClass as return type. The example you copied from is using data in the form of an array holding arrays, you are using data in the form of an array holding objects. Objects and arrays are not the same, and because of this they use different syntaxes. I was trying to copy this code:

  • System disk error windows 7
  • Throw custom error message c
  • Error message e161 403e
  • Fatal error class zend config ini not found
  • Jslint unrecoverable syntax error 5 scanned


  • Video:Error type cannot

    Type object fatal