MySpaza - How To
Web Design Tips and PC and Linux Related Information

Subscribe
 



    follow me on Twitter

    My First PHP lessons - PHP Variables
    my first php lesson, php variables

    Added: 2008-10-07 00:39:07

    PHP variables are very useful as they allow you define a value to a specific variable of array.

    To assign a value to a variable in PHP we use the following:

    <?

    $somevar = 'Some Information';

    ?>

    to use this variable:

    <?

    echo $somevar;

    ?>

    Other PHP lessons:

    http://myspaza.co.uk/My-First-PHP-lessons-Hello-World-i-5.html





    Add a comment to this post
    Email confirmation is required for each post

    Name:
    Email:
    Comment:
     

    Comments from other users:




    Copyright MySpaza.Co.Uk - 2012