@Sup3rkirbyMay 28.2014 — #The most important question here is, what exactly are you trying to do with this?
Since PHP is a server-side language, once the page has finished loading all PHP code becomes inaccessible. Thus you cannot call a PHP function from HTML, Javascript or other client-side languages. Via AJAX, javascript would be able to call a PHP script that could then execute various PHP functions, but this isn't something that occurs within a single page/file.
But again, this comes down to what you are actually trying to do. If the function you wish to execute can be converted into a javascript function instead then this would be the way to go, rather than trying to run a PHP function outside of PHP. But if this PHP function has specific actions that require PHP, then it might be suggested to set up a way to execute it via AJAX, which will require you to slightly adapt how this function works and how it affects your page (since it could not be called and executed within the same page).