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)
    – Ravi Soni
    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.

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