If you start typing `html` trying to get to `html_entity_encode` you'll notice a dropdown which will show you the right method to use. Unless you use notepad.exe or something.
Unless you only write a few lines of PHP every couple of days then you quickly learn what is what, and order of the function signature... I left for 2 years and came back and took me 3 days to get back to the state I was before.
https://i.imgur.com/YYXkkNS.png