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?

2
  • I got the answer. get_object_vars($data) Commented May 29, 2019 at 11:14
  • Please add this as an answer and accept it so other may get help @Ravi Commented May 29, 2019 at 11:17

1 Answer 1

0

I used below php function:

 get_object_vars($data);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.