strpos()
strpos() is simple if you keep it on paper. Amit uses it for a strpos dry-run in a small live site.
Keep strpos() small. Amit should finish a strpos dry-run in a few lines, not a 40-line dump.
strpos() exists so Amit can keep a strpos dry-run correct in a small live site.
Use strpos() when a strpos dry-run must stay clear. If a simpler PHP step works, use that instead.
If a strpos dry-run breaks under strpos(), check skipping the failure case for strpos first.
After strpos(), Amit should still remember skipping the failure case for strpos.
Close strpos() with — “If I skip it, a strpos dry-run goes wrong like this: skipping the failure case for strpos.”
Say strpos() in one breath, then one strpos step Amit can write from memory, then skipping the failure case for strpos.