如何通过给出密钥名称来获取密钥的特定值?

Array
(
    [0] => stdClass Object
    (
        [domain] => alphaanalysis.org
        [status] => available
    )
}

I have the array and it's elements like this. I just need the value of domain key. How to get that, I don't know. Please help me.

If your array is $x you can use:

$x[0]->domain
<?php
     $array[0]->domain; 
 ?>

If your array is $array then you can try this.

Just use this syntax for that

$arraynem[]->key;