Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Wyciągnięcie zmiennej z obiektu
-Omnik-
post
Post #1





Goście







Cześć,
jak wyciągnąć zmienną category_id o wartości 9 z tego obiektu?:
Kod
xmlrpcval Object
(
    [me] => Array
        (
            [array] => Array
                (
                    [0] => xmlrpcval Object
                        (
                            [me] => Array
                                (
                                    [struct] => Array
                                        (
                                            [category_id] => xmlrpcval Object
                                                (
                                                    [me] => Array
                                                        (
                                                            [string] => 9
                                                        )

                                                    [mytype] => 1
                                                    [_php_class] =>
                                                )

                                            [category_name] => xmlrpcval Object
                                                (
                                                    [me] => Array
                                                        (
                                                            [string] => Newsy
                                                        )

                                                    [mytype] => 1
                                                    [_php_class] =>
                                                )

                                        )

                                )

                            [mytype] => 3
                            [_php_class] =>
                        )

                )

        )

    [mytype] => 2
    [_php_class] =>
)
Go to the top of the page
+Quote Post

Posty w temacie
- Omnik   [PHP] Wyciągnięcie zmiennej z obiektu   11.11.2008, 17:11:52
- - Omnik   Dla potomnych: [PHP] pobierz, plaintext <?php$v...   11.11.2008, 17:40:09


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 14:50