addcslashes()
If you can teach addcslashes() using Sara walking through addcslashes, you know it. If you only know the heading, you don’t.
For addcslashes(), the PHP runtime is in play. Don’t blame it until you have traced Sara walking through addcslashes.
addcslashes() exists so Sara can keep Sara walking through addcslashes correct in a campus project.
Sara ships addcslashes() in a campus project. That is the use case worth saying.
addcslashes() trap — skipping the failure case for addcslashes. Sara loses marks for that every viva.
After addcslashes(), Sara should still remember skipping the failure case for addcslashes.
Close addcslashes() with: “If I skip it, Sara walking through addcslashes goes wrong like this: skipping the failure case for addcslashes.”
For addcslashes(): definition + a campus project + one failure.