Call PHP function when entering the page

Asked

Viewed 52 times

-4

Calling a PHP function when user enters the page, some example?

  • What you tried to do and what didn’t work?

  • @Alisson May God have mercy on you.

1 answer

2


Basically like this: I call the function when the page is requested.

<?php
    myFunction();
    function myFunction() 
    {
        echo "Executou aqui!";
    }

Browser other questions tagged

You are not signed in. Login or sign up in order to post.