GetStartPhp

back to index


1 Get Start of PHP

1 install php

2 install vscode php extension

phpextension

// helloworld.php
<?php
    echo 'Hello World!'
?>

/*
    MyFirstPhp.php
*/
    <!DOCTYPE html>
    <html>
    <body>

    <?php
    echo "My first PHP script!<br>";
    $version = phpversion();
    echo "version=";
    ?>
    <?=$version ?>
    <br>
    </body>
    </html>

myfirstphp

3 Php Code Examples


next chapter-> 2.MySql back to index