Calling a PHP function within an <a > tag, anchor tag
- by Roland
Is it possible to call a PHP function within an anchor tag. I have a PHP function called logout();
Now I want something similar to this.
<a href="logout();" >Logout</a>
I know with Javascript this works but what is the best approach using PHP function?