PHP has some problems with arrays. ... foreach ($posts as $post) { if (! $post instanceof Post) { continue; } $id = $post->getId(); // Do ...
確定! 回上一頁