when i save my php file then VS Code removes ?> tag from ending. and its causing problems in execution. I dont know why is this happening. If anyone knows please help. Thank u.
Update: I was using Es-lint and Prettier extensions at the same time. I removed them and now its fine.