I'm facing an issue in getting data from the protected array and echo in PHP. I have attached my sample protected array below. 

(1) {
    array(2) {
    string(11) "description"
    string(14) "My Custom desc"

//not working
$customAttribute = $customAttributes["_data"]["value"];
echo $customAttribute;
  • 2
    I’m voting to close this question because it's belong to stackoverflow.com Apr 14 at 5:05

Browse other questions tagged .