I'm trying to use idn_to_ascii() on PHP version 7.2.13 but I'm receiving:
Uncaught Error: Call to undefined function idn_to_ascii()
I don't have the PECL intl extension installed, but according to the top user contributed note on the documentation, I don't need it:
"...if you have >=5.4 you will not require the PECL extensions. "
Is the user note wrong? If not, then what am I doing wrong?
You probably need to activate the "intl" php module.
You can do it by cPanel Select PHP Version configuration by checking the "intl" module and save.