php - how to display the object value in array -


Text after "

  subscription object {id: "3", type: "all", name: "order payment status complete "Admin-1" ... admin_contact: object admin_contact_selector: "admin-1" Category: Object display: "Flight: [All]" id: "-1", "-1", category_id: "-1", admin_contact_selector: "admin-1" "Product_type:" Flight "__proto__: Object category_id:" -1 "id:" 3 "Name:" Order Payment Status Fully Payment ":" All "__proto__: Object  

I subscribe with ID Consumer commodity prices. I want to display the value of the display in the category object.

  print "& lt; pre & gt;"; Var_dump ($ membership ['category'] ['dispaly']); Print "& lt; / pre & gt;"; ? & Gt;  

My problem return value is empty, the actual value is Flight: [All]

thanks a lot

It should appear that ..

  echo $ subscription-> Category & gt; Display;  

That's because you are reaching out to the objects and you have the - & gt; You need to use the operator

  • First of all, you were reaching objects as arrays .
  • Secondly, there was an error in writing. If this was correct, then it will still display null because your first condition fails.

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -