stdClass Object
(
    [results] => Array
        (
            [0] => stdClass Object
                (
                    [address_components] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [long_name] => 160059
                                    [short_name] => 160059
                                    [types] => Array
                                        (
                                            [0] => postal_code
                                        )

                                )

                            [1] => stdClass Object
                                (
                                    [long_name] => Sahibzada Ajit Singh Nagar
                                    [short_name] => SAS Nagar
                                    [types] => Array
                                        (
                                            [0] => locality
                                            [1] => political
                                        )

                                )

                            [2] => stdClass Object
                                (
                                    [long_name] => India
                                    [short_name] => IN
                                    [types] => Array
                                        (
                                            [0] => country
                                            [1] => political
                                        )

                                )

                        )

                    [formatted_address] => Sahibzada Ajit Singh Nagar, 160059, India
                    [geometry] => stdClass Object
                        (
                            [bounds] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 30.7270118
                                            [lng] => 76.7315593
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 30.7061874
                                            [lng] => 76.710425
                                        )

                                )

                            [location] => stdClass Object
                                (
                                    [lat] => 30.7191317
                                    [lng] => 76.720616
                                )

                            [location_type] => APPROXIMATE
                            [viewport] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 30.7270118
                                            [lng] => 76.7315593
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 30.7061874
                                            [lng] => 76.710425
                                        )

                                )

                        )

                    [place_id] => ChIJXWWhyXzuDzkRkG6561Z6TBs
                    [types] => Array
                        (
                            [0] => postal_code
                        )

                )

        )

    [status] => OK
)
Array
(
    [city] => Sahibzada Ajit Singh Nagar
    [state] => 
    [country] => India
)

Compare