ltrim()
Ananya only reaches for ltrim() when a ltrim dry-run has to stay correct in a small live site.
Keep ltrim() small. Ananya should finish a ltrim dry-run in a few lines, not a 40-line dump.
Without ltrim(), a small live site gets messy and a ltrim dry-run is hard to trust.
ltrim() shows up in a small live site. Name a ltrim dry-run, not “a real-world scenario”.
ltrim() trap — skipping the failure case for ltrim. Ananya loses marks for that every viva.
Place ltrim() next to nearby PHP work — one ltrim step Ananya can write from memory is the link.
Close ltrim() with — “If I skip it, a ltrim dry-run goes wrong like this: skipping the failure case for ltrim.”
For ltrim(): definition + a small live site + one failure.