PHP Uzyskaj wartość od JSON

Powiedzmy, że mam ten JSON:

{
  "achievement": [
    {
      "title": "Ready for Work",
      "description": "Sign up and get validated",
      "xp": 50,
      "difficulty": 1,
      "level_req": 1
    },
    {
      "title": "All Around Submitter",
      "description": "Get one piece of textual content approved in all five areas.",
      "xp": 500,
      "difficulty": 2,
      "level_req": 1
    }
}

i próbuję tego przez PHP:

$string = file_get_contents("achievements.json");
$json_a=json_decode($string,true);

$getit = $json_a->achievement['title'][1];

Próbuję zdobyć pierwsze „id” osiągnięciaREADY FOR WORK.

Jak to naprawić?

questionAnswers(1)

yourAnswerToTheQuestion