うまくいけば、私はこれを適切に言っています...
ID = 68 のインデックスを見つけるにはどうすればよいですか?
2 のインデックスを返す関数を作成するのに助けが必要です...ありがとう!
$posts = Array (
[0] => stdClass Object
(
[ID] => 20
[post_author] => 1
[post_content] =>
[post_title] => Carol Anshaw
)
[1] => stdClass Object
(
[ID] => 21
[post_author] => 1
[post_content] =>
[post_title] => Marie Arana
)
[2] => stdClass Object
(
[ID] => 68
[post_author] => 1
[post_content] =>
[post_title] => T.C. Boyle
)
[3] => stdClass Object
(
[ID] => 1395
[post_author] => 1
[post_content] =>
[post_title] => Rosellen Brown
)
)