Be careful where you learn to code. Not all tutorials are equal, especially for web-app scripted languages. https://www.helpnetsecurity.com/2017/04/21/programming-tutorials-vulnerabilities/