Jump to content

Array - variable - how to retreive


Recommended Posts

So here is my array:

array(1) {  ["84EA0353-58EB-E311-A8B1-001D09E7525D"]=>  
array(1) {    [0]=>    
object(stdClass)#7 (1) {      
["data"]=>      array(2) 
["amt"]=>        string(7) 
["unit"]=>        string(3) 
"BUC"      }    }  

I'm trying to set the variable $x to = amt.


I've tried

$x= $ArrayMap->amt;

this but it comes up null.


I've also tried:

$x= $ArrayMap['amt'];

But both come up NULL.


Any ideas on what I'm doing wrong?






Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.