我有兩個結果,一個用WP_Post
對象等是stdClass
對象。全部包含相同的數據。我如何區分它們?WP_Post對象VS stdClass的對象
結果1: -
WP_Post Object
(
[ID] => 952
[post_content] =>
[post_title] =>
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
)
結果2: -
stdClass Object
(
[ID] => 952
[post_content] =>
[post_title] =>
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
)