php - I need to get NID from the array -


array(1) {              [0] => object(stdclass)#53 (14)                  {                      ["cart_item_id"]=> string(2) "64"                      ["cart_id"]=> string(1) "1"                      ["nid"]=> string(3) "204"                      ["qty"]=> string(1) "1"                      "changed"]=> string(10) "1340948878"                      ["data"]=> array(3)                          {                              ["shippable"]=> string(1) "1"                              ["restrict_qty"]=> string(1) "0"                              ["module"]=> string(10) "uc_product"                          }                      ["title"]=> string(5) "songs"                      ["vid"]=> string(3) "204"                      ["cost"]=> string(9) "123.00000"                      ["price"]=> string(9) "123.00000"                      ["weight"]=> string(1) "0"                      ["weight_units"]=> string(2) "lb"                      ["module"]=> string(10) "uc_product"                      ["model"]=> string(1) "1"                  }          } 

please how nid value in new variable.

get via

$output = $array[0]->nid 

access object ->
access array [index]


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -