I've been learning PHP for about two months. Before that, I was studying JavaScript, but now I struggle to write even basic JavaScript from memory. I can still read it and understand what the code is doing, yet I often forget simple syntax when I try to create something myself. Is this a normal part of learning, or should I be practicing differently?
4 Answers
It’s normal to remember the general shape of a solution while forgetting the exact punctuation or function name. Don’t treat looking things up as failure; experienced developers do it too. The important part is knowing what you want to accomplish and being able to quickly find or reconstruct the syntax.
A little regular practice helps a lot. Even writing small scripts for an hour a day—or occasionally building a tiny project—can keep the language familiar. Rewriting examples, debugging code, and using the syntax repeatedly will make the commonly used parts stick.
Yes, that’s completely normal. Skills fade when you don’t use them, including programming syntax. The good news is that previously learned material usually comes back much faster once you start practicing that language again.
Syntax is usually the easiest part to recover because you can look up examples, documentation, or built-in functions when needed. Try to focus more on understanding how to break problems down and recognize common programming patterns. Those problem-solving skills matter more than memorizing every detail of a language.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically