Home Menu

PHP

PHP: Hypertext Preprocessor (PHP) is a language for creating web content.

Examples

PHP

<?

echo '<!doctype html>
<html>
<head>
    <title>PHP</title>
    <style>
        a
        {
            color: purple;
        }
        a:hover
        {
            text-decoration: none;
        }
    </style>
</head>
<body>
    <a href="/php/">PHP</a>
    <script>
        var timeout;
        function myfunction()
        {
            var element = document.querySelector("a");
            element.style.position = "absolute";
            element.style.left = Math.random() * (window.innerWidth - element.offsetWidth) + "px";
            element.style.top = Math.random() * (window.innerHeight - element.offsetHeight) + "px";
            window.clearTimeout(timeout);
            timeout = window.setTimeout(myfunction, 3000);
        }
        myfunction();
    </script>
</body>
</html>';

?>
<!doctype html>
<html>
<head>
    <title>PHP</title>
    <style>
        a
        {
            color: purple;
        }
        a:hover
        {
            text-decoration: none;
        }
    </style>
</head>
<body>
    <a href="/php/">PHP</a>
    <script>
        var timeout;
        function myfunction()
        {
            var element = document.querySelector("a");
            element.style.position = "absolute";
            element.style.left = Math.random() * (window.innerWidth - element.offsetWidth) + "px";
            element.style.top = Math.random() * (window.innerHeight - element.offsetHeight) + "px";
            window.clearTimeout(timeout);
            timeout = window.setTimeout(myfunction, 3000);
        }
        myfunction();
    </script>
</body>
</html>

Functions

<?

function myfunction()
{
    echo '<a href="/php/functions/">Functions</a>';
}

myfunction();

?>
<a href="/php/functions/">Functions</a>

Internal

Functions

External

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms