{
  "id": "02",
  "content": [
    {
      "type": "heading",
      "text": "Syntax, Tags & Variables"
    },
    {
      "type": "text",
      "html": "PHP code is wrapped in <code>&lt;?php ... ?&gt;</code> tags. Statements end with a semicolon. Variables start with <code>$</code>."
    },
    {
      "type": "text",
      "html": "<pre><code>&lt;?php\n $name = \"Xavier\";\n $year = 2025;\n echo \"Hello $name, year $year\";\n</code></pre>"
    },
    {
      "type": "text",
      "html": "<strong>Comments:</strong> <code>//</code>, <code>#</code>, or <code>/* ... */</code>."
    }
  ],
  "quiz": {
    "questions": [
      {
        "id": "q1",
        "type": "single",
        "text": "Which is a valid PHP variable name?",
        "options": [
          {
            "id": "a",
            "text": "$1name"
          },
          {
            "id": "b",
            "text": "$name"
          },
          {
            "id": "c",
            "text": "name$"
          }
        ],
        "correct": [
          "b"
        ]
      },
      {
        "id": "q2",
        "type": "single",
        "text": "PHP statements usually end with:",
        "options": [
          {
            "id": "a",
            "text": "Semicolon"
          },
          {
            "id": "b",
            "text": "Comma"
          },
          {
            "id": "c",
            "text": "Period"
          }
        ],
        "correct": [
          "a"
        ]
      }
    ]
  }
}