If by invoke you mean that you call a php script page and load it then:
function blah(pass) {
document.location = "something.php?var=" + pass
}
<or something to that effect>
This would load the page. When the function would called. However if you mean running a script "behind" the page when a function is called... then it cannot be done. Javascript is a client side language and PHP is serverside. The only thing you could possibly do if you want it to load in the back, is use Flash or a Java Applet or something.
Hope that Helps!