This is really simple but I can't get my head around it. I am setting a datestamp and would like to be able to use it inside a function like this..
    $date_stamp = date("dmy",time());
    function myfunction() {
        echo $date_stamp;
    }
This is not working and $date_stamp is not available inside the function, how can I use this?
 
     
    