<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://icontemp.com/wiki/phpprimer/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://icontemp.com/wiki/phpprimer/feed.php">
        <title>PHP Primer for the AI Era</title>
        <description>A PHP Guide for Humans</description>
        <link>https://icontemp.com/wiki/phpprimer/</link>
        <image rdf:resource="https://icontemp.com/wiki/phpprimer/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-11-18T18:53:01+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=start&amp;rev=1794884938&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:start&amp;rev=1794884192&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=z_appendix_101:start&amp;rev=1794884148&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:start&amp;rev=1794884130&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:ai_slips_out&amp;rev=1794883950&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:common_patterns_ai_uses&amp;rev=1794883898&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:hallucinations&amp;rev=1794883820&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:a_practical_guide&amp;rev=1794883750&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:how_to_review_ai_generated_code&amp;rev=1794883615&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:guiding_ai_toward_better_architecture&amp;rev=1794883587&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:when_not_to_trust_ai&amp;rev=1794883542&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:how_to_ask_ai_for_better_refactoring&amp;rev=1794883158&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:overview&amp;rev=1794803351&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:execution_flow&amp;rev=1794803326&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:request_lifecycle&amp;rev=1794803294&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:scope_and_lifetime&amp;rev=1794803259&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:functions_and_closures&amp;rev=1794803189&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:classes_and_autoloading&amp;rev=1794803129&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:error_handling&amp;rev=1794803101&amp;do=diff"/>
                <rdf:li rdf:resource="https://icontemp.com/wiki/phpprimer/doku.php?id=z_appendix_101:a_gentle_php_101_for_the_ai_era&amp;rev=1794802989&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://icontemp.com/wiki/phpprimer/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>PHP Primer for the AI Era</title>
        <link>https://icontemp.com/wiki/phpprimer/</link>
        <url>https://icontemp.com/wiki/phpprimer/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=start&amp;rev=1794884938&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T03:08:58+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>PHP Primer for the AI Era - [Start Here] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=start&amp;rev=1794884938&amp;do=diff</link>
        <description>PHP Primer for the AI Era

— a gentle guide for the human part of the collaboration

This Primer is not a syntax reference. Its purpose is to help programmers develop a modern mental model of PHP and collaborate effectively with AI while remaining responsible for the decisions that matter.</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:start&amp;rev=1794884192&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T02:56:32+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>The PHP Mental Model</title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:start&amp;rev=1794884192&amp;do=diff</link>
        <description>The PHP Mental Model

The deeper ideas behind modern PHP — how the language thinks, and how to reason
about its behavior. These pages explore the mental models that guide clear,
predictable architecture.

Please sort A-Z for intended reading sequence.</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=z_appendix_101:start&amp;rev=1794884148&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T02:55:48+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>Modern PHP by Example - [— A Gentle 101 for the AI Era] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=z_appendix_101:start&amp;rev=1794884148&amp;do=diff</link>
        <description>Modern PHP by Example

— A Gentle 101 for the AI Era

Please sort A-Z for intended reading sequence.

November 2026 edition</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:start&amp;rev=1794884130&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T02:55:30+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>3. Working With AI</title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:start&amp;rev=1794884130&amp;do=diff</link>
        <description>3. Working With AI

Practical guidance for collaborating with AI in modern PHP development.

These pages explore patterns, review techniques, and the subtle ways AI
drifts from the language’s shape — and how to guide it back with clarity.

Please sort</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:ai_slips_out&amp;rev=1794883950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T02:52:30+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>1. How AI Slips Out of Modern PHP - [(1) Mixing eras of PHP] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:ai_slips_out&amp;rev=1794883950&amp;do=diff</link>
        <description>1. How AI Slips Out of Modern PHP

Why this matters

In the previous section, we explored how modern PHP thinks.

We learned that PHP is:

	* request-driven
	* explicitly structured
	* predictable in its flow
	* careful about boundaries
	* designed around clear contracts and visible failure</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:common_patterns_ai_uses&amp;rev=1794883898&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T02:51:38+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>2. Common Patterns AI Uses - [(8) Forgetting the edges] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:common_patterns_ai_uses&amp;rev=1794883898&amp;do=diff</link>
        <description>2. Common Patterns AI Uses

In the previous chapter,

we explored how AI can drift away from modern PHP.

The drift is rarely random.

AI tends to make the same kinds of mistakes repeatedly.

AI relies on patterns learned from enormous amounts of code</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:hallucinations&amp;rev=1794883820&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T02:50:20+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>3. AI and PHP: Understanding Hallucinations and False Assumptions - [(d) How to Recognize a Hallucination Early] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:hallucinations&amp;rev=1794883820&amp;do=diff</link>
        <description>3. AI and PHP: Understanding Hallucinations and False Assumptions

AI can accelerate learning, explain unfamiliar code,

and generate useful first drafts.

But AI is not a PHP interpreter, a language specification,

or a source of truth.

It produces answers by predicting patterns,</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:a_practical_guide&amp;rev=1794883750&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T02:49:10+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>4. Working With AI Effectively — A Practical Guide - [(1) Start With Intent, Not Syntax] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:a_practical_guide&amp;rev=1794883750&amp;do=diff</link>
        <description>4. Working With AI Effectively — A Practical Guide

AI can generate PHP quickly.

It can explain concepts,

propose designs,

and produce useful first drafts in seconds.

But good results rarely happen by accident.

Like any collaborator,

AI performs best when it receives</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:how_to_review_ai_generated_code&amp;rev=1794883615&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T02:46:55+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>5. How to Review AI‑Generated Code — A Calm, Structured Approach - [(1) Start With the Shape, Not the Details] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:how_to_review_ai_generated_code&amp;rev=1794883615&amp;do=diff</link>
        <description>5. How to Review AI‑Generated Code — A Calm, Structured Approach

AI can generate PHP quickly.

It can produce useful ideas,

propose designs,

and assemble working code in seconds.

But speed is not the same as quality.

AI cannot guarantee clarity, consistency,</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:guiding_ai_toward_better_architecture&amp;rev=1794883587&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T02:46:27+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>6. Guiding AI Toward Better Architecture — Patterns, Prompts, and Mental Models - [(2) Define the Data Shape Explicitly] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:guiding_ai_toward_better_architecture&amp;rev=1794883587&amp;do=diff</link>
        <description>6. Guiding AI Toward Better Architecture — Patterns, Prompts, and Mental Models

Shaping AI before it drifts.

AI does not design architecture.

It follows architecture.

The quality of AI-generated code 
is often determined long before 
the first line is written.</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:when_not_to_trust_ai&amp;rev=1794883542&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T02:45:42+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>7. AI‑Generated Code: When to Trust It, When to Rewrite It - [(9) Trust AI for Drafting, Not Designing] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:when_not_to_trust_ai&amp;rev=1794883542&amp;do=diff</link>
        <description>7. AI‑Generated Code: When to Trust It, When to Rewrite It

AI drafts.

We decide what survives.

AI can produce PHP quickly,

but not all output deserves to survive.

Some drafts are solid foundations

while others are better thrown away and rebuilt with clarity.</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:how_to_ask_ai_for_better_refactoring&amp;rev=1794883158&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-17T02:39:18+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>8. How to Ask AI for Better Refactoring - [About This Topic] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=working_with_ai:how_to_ask_ai_for_better_refactoring&amp;rev=1794883158&amp;do=diff</link>
        <description>8. How to Ask AI for Better Refactoring

AI is fast at rewriting code,

but not always good at refactoring it.

When left on its own, AI often rearranges code

instead of improving it,

or adds abstractions that don’t express meaning.

Good refactoring comes from direction,</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:overview&amp;rev=1794803351&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-16T04:29:11+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>1. Understanding How PHP Thinks - [Why this matters in the AI era] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:overview&amp;rev=1794803351&amp;do=diff</link>
        <description>1. Understanding How PHP Thinks

Before we can evaluate AI-generated PHP,

we need to understand how PHP naturally works.

Not the syntax, but the model.

Every language has patterns that feel at home within it.

Some code flows naturally with the language.</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:execution_flow&amp;rev=1794803326&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-16T04:28:46+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>2. Execution Flow — How PHP Knows What To Do Next - [(1) Some code runs immediately] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:execution_flow&amp;rev=1794803326&amp;do=diff</link>
        <description>2. Execution Flow — How PHP Knows What To Do Next

In the previous chapter, we learned that PHP follows a predictable flow.

Every request begins with a clean slate.

But that raises a new question:


How does PHP know what to do next?


The answer is surprisingly simple.</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:request_lifecycle&amp;rev=1794803294&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-16T04:28:14+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>3. Request Lifecycle — What Happens During a Request - [(1) A request arrives] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:request_lifecycle&amp;rev=1794803294&amp;do=diff</link>
        <description>3. Request Lifecycle — What Happens During a Request

In the previous chapter, we followed the execution of a file.

PHP moved from one statement to the next, executing code as it encountered it.

But execution flow is only part of the story.

Every piece of PHP code</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:scope_and_lifetime&amp;rev=1794803259&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-16T04:27:39+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>4. Scope &amp; Lifetime — Where Variables Live - [(3) Some globals are always available] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:scope_and_lifetime&amp;rev=1794803259&amp;do=diff</link>
        <description>4. Scope &amp; Lifetime — Where Variables Live

In the previous chapter, we followed a request from beginning to end.

	* A request arrived. 
	* Work was performed. 
	* A response was produced. 
	* Then everything disappeared.

That raises an important question:</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:functions_and_closures&amp;rev=1794803189&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-16T04:26:29+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>5. Functions &amp; Closures — How PHP Captures Context - [About the next chapter] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:functions_and_closures&amp;rev=1794803189&amp;do=diff</link>
        <description>5. Functions &amp; Closures — How PHP Captures Context

In the previous chapter, we explored scope and lifetime:

	* Variables lived within boundaries. 
	* Some belonged to functions. 
	* Some belonged to classes. 
	* Some belonged to the request itself.</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:classes_and_autoloading&amp;rev=1794803129&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-16T04:25:29+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>6. Classes &amp; Autoloading — How Modern PHP Organizes Code - [About the next chapter] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:classes_and_autoloading&amp;rev=1794803129&amp;do=diff</link>
        <description>6. Classes &amp; Autoloading — How Modern PHP Organizes Code

In the previous chapter, we explored how functions organize behavior.

Functions work well for isolated tasks.

But as applications grow, we need a way to organize larger groups of data and behavior.</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:error_handling&amp;rev=1794803101&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-16T04:25:01+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>7. Error Handling — Exceptions, Types, and Failure Modes - [About the next chapter] </title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=mental_model:error_handling&amp;rev=1794803101&amp;do=diff</link>
        <description>7. Error Handling — Exceptions, Types, and Failure Modes

In the previous chapter, we explored how modern PHP organizes code.

Classes provide structure.

Namespaces create boundaries.

Autoloading helps PHP find what it needs.

But even well-organized applications encounter problems.</description>
    </item>
    <item rdf:about="https://icontemp.com/wiki/phpprimer/doku.php?id=z_appendix_101:a_gentle_php_101_for_the_ai_era&amp;rev=1794802989&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-11-16T04:23:09+00:00</dc:date>
        <dc:creator>editor (editor@undisclosed.example.com)</dc:creator>
        <title>01. Modern PHP by Example — A Gentle 101 for the AI Era</title>
        <link>https://icontemp.com/wiki/phpprimer/doku.php?id=z_appendix_101:a_gentle_php_101_for_the_ai_era&amp;rev=1794802989&amp;do=diff</link>
        <description>01. Modern PHP by Example — A Gentle 101 for the AI Era

Most people who learn PHP today 
will not learn it the way earlier generations did.

They will not write loops by hand for months.

They will not memorize syntax.

They will rarely build every piece of an application by hand.</description>
    </item>
</rdf:RDF>
