{
  "id": "01",
  "content": [
    {
      "type": "heading",
      "text": "Welcome to PHP"
    },
    {
      "type": "text",
      "html": "PHP is a popular server\u2011side scripting language for building dynamic websites and APIs. It runs on the server and outputs HTML/JSON to the browser."
    },
    {
      "type": "text",
      "html": "<strong>Setup:</strong> Install PHP (8.x recommended) and a local server stack (Apache/Nginx). Quick start using the built\u2011in server:<br><pre><code>php -S localhost:8000</code></pre>"
    },
    {
      "type": "text",
      "html": "Create <code>index.php</code>:<pre><code>&lt;?php\n echo \"Hello, Xavier!\";\n</code></pre>"
    }
  ],
  "quiz": {
    "questions": [
      {
        "id": "q1",
        "type": "single",
        "text": "PHP code runs primarily:",
        "options": [
          {
            "id": "a",
            "text": "On the server"
          },
          {
            "id": "b",
            "text": "In the browser like JavaScript"
          },
          {
            "id": "c",
            "text": "On a database only"
          }
        ],
        "correct": [
          "a"
        ]
      },
      {
        "id": "q2",
        "type": "single",
        "text": "Which command starts PHP\u2019s built\u2011in dev server?",
        "options": [
          {
            "id": "a",
            "text": "php -S localhost:8000"
          },
          {
            "id": "b",
            "text": "php --run"
          },
          {
            "id": "c",
            "text": "php start"
          }
        ],
        "correct": [
          "a"
        ]
      }
    ]
  }
}