<?php
"title" => "A",
"url" => "http://c...content-available-to-author-only...m.com/a"
),
"title" => "G",
"url" => "http://c...content-available-to-author-only...m.com/g"
),
"title" => "C",
"url" => "http://c...content-available-to-author-only...m.com/c"
),
"title" => "B",
"url" => "http://c...content-available-to-author-only...m.com/b"
),
"title" => "J",
"url" => "http://c...content-available-to-author-only...m.com/j"
),
);
$actual_title = "C";
$actual_link = "http://com.сom/c";
foreach($posts as $post) {
echo $post['title']."<br>\n";
}
echo "\n<pre>";
echo "</pre>";
/*
Хочу получить это, если $actual_title = "C";
G<br>
J<br>
A<br>
B<br>
*/
?>
PD9waHAKJHBvc3RzID0gYXJyYXkoCgkkYXJyYXlbMF0gPSBhcnJheSgKCQkidGl0bGUiID0+ICJBIiwKCQkidXJsIiA9PiAiaHR0cDovL2MuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLm0uY29tL2EiCgkpLAoJJGFycmF5WzFdID0gYXJyYXkoCgkJInRpdGxlIiA9PiAiRyIsCgkJInVybCIgPT4gImh0dHA6Ly9jLi4uY29udGVudC1hdmFpbGFibGUtdG8tYXV0aG9yLW9ubHkuLi5tLmNvbS9nIgoJKSwKCSRhcnJheVsyXSA9IGFycmF5KAoJCSJ0aXRsZSIgPT4gIkMiLAoJCSJ1cmwiID0+ICJodHRwOi8vYy4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4ubS5jb20vYyIKCSksCgkkYXJyYXlbM10gPSBhcnJheSgKCQkidGl0bGUiID0+ICJCIiwKCQkidXJsIiA9PiAiaHR0cDovL2MuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLm0uY29tL2IiCgkpLAoJJGFycmF5WzRdID0gYXJyYXkoCgkJInRpdGxlIiA9PiAiSiIsCgkJInVybCIgPT4gImh0dHA6Ly9jLi4uY29udGVudC1hdmFpbGFibGUtdG8tYXV0aG9yLW9ubHkuLi5tLmNvbS9qIgoJKSwKKTsKCmtzb3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