0

I have below result:

echo "<pre>";
print_r($data); die();

Result

Zend\Stdlib\Parameters Object
(
    [storage:ArrayObject:private] => Array
        (
            [success_url] =>  
            [error_url] =>  
            [company_name] => fdgdg
            [name] =>  fgfdg
            [email] => 
            [telephone] =>  dfgdf
            [address] =>  gdfg
            [city] =>  
            [state] =>  
            [zipcode] =>  
            [industry] =>  
            [how_did_you_here] =>  
        )

)

I want to access only array?

  • I got the answer. get_object_vars($data) – Ravi Soni May 29 at 11:14
  • Please add this as an answer and accept it so other may get help @Ravi – Prathap Gunasekaran May 29 at 11:17
0

I used below php function:

 get_object_vars($data);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.