str_rot13()
str_rot13() is simple if you keep it on paper. Amit uses it for a str_rot13 dry-run in a campus project.
str_rot13() order: meaning → one str_rot13 step Amit can write from memory → one limit. Dumping ten features helps nobody.
Skip str_rot13() and skipping the failure case for str_rot13 shows up in a campus project.
Use str_rot13() when a str_rot13 dry-run must stay clear. If a simpler PHP step works, use that instead.
Don’t do this with str_rot13() — skipping the failure case for str_rot13. Interviewers spot it in ten seconds.
After str_rot13(), Amit should still remember skipping the failure case for str_rot13.
Viva for str_rot13(): what it is → one str_rot13 step Amit can write from memory → the mistake (skipping the failure case for str_rot13).
Board: a str_rot13 dry-run. Dry-run str_rot13(). Name the trap: skipping the failure case for str_rot13.