Moja tablica zbliża się tenJak przekonwertować obiekt na tablicę, aby uzyskać dane?
Array ([0] => stdClass Object ([ID] => 578 [post_author] => 1 [post_date] => 2011-01-18 07:23:17 [post_date_gmt] => 2011-01-18 07:23:17 [post_content] => Home WordPress is web software you can use to create a beautiful website or blog. We like to say that WordPress is both free and priceless at the same time. The core software is built by hundreds of community volunteers, and when you’re ready for more there are thousands of plugins and themes available to transform your site into almost anything you can imagine. Over 25 million people have chosen WordPress to power the place on the web they call “home” — we’d love you to join the family [post_title] => second post [post_excerpt] => [post_status] => publish [comment_status] => open
kiedy piszę jak ten
$myposts = get_posts($args);
$arrDt = (array) $myposts;
print_r($arrDt);
ale mój problem jest w jaki sposób można uzyskać wartości tej tablicy wewnątrz obiektu.
proszę o pomoc. Thnx print_r ($ arrDt);
ohh mój Boże dziękuję Felix u rozwiązać mój problem thnx thnx – rajeshrt
@user jeśli odpowiedź rozwiązuje swoje pytanie, zachęcamy do przyjmuję je zaznaczając kontur zielony znacznik wyboru obok tego. Jeśli istnieje wiele odpowiedzi, zaznacz tę, która była dla ciebie najbardziej pomocna i rozważ zachowanie innych odpowiedzi. – Gordon