Results 1 to 10 of 50

Thread: Day 2 - Variables - Become PHP Expert in 30 days

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2005
    Posts
    46,704

    Default

    http://php.flashwebhost.com/mini/variable_4.php

    Code:
     <?php
    
    
    $name = 'Raju';
    
    $place = 'Ernakulam';
    
    $job = 'Designer';
    
    $nation = 'india';
    
    $age = '30';
    
    echo $name . ' from ' .  $place . '. Working as ' . $job. '. Nationality ' . $nation . ' . Age ' . $age;

  2. #2
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    Quote Originally Posted by minisoji View Post
    http://php.flashwebhost.com/mini/variable_4.php

    Code:
     <?php
    
    
    $name = 'Raju';
    
    $place = 'Ernakulam';
    
    $job = 'Designer';
    
    $nation = 'india';
    
    $age = '30';
    
    echo $name . ' from ' .  $place . '. Working as ' . $job. '. Nationality ' . $nation . ' . Age ' . $age;

    Code:
    $age = '30';
    Since age is numeric, no need to use single quote. For numeric values, use as follows

    Code:
    $age = 30;
    Everything else looks good.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  3. #3
    Join Date
    Apr 2005
    Posts
    46,704

    Default

    http://php.flashwebhost.com/mini/variable_4.php

    Code:
    <?php
    
    
    $name = 'Raju';
    
    $place = 'Ernakulam';
    
    $job = 'Designer';
    
    $nation = 'india';
    
    $age = 30;
    
    echo $name . ' from ' .  $place . '. Working as ' . $job. '. Nationality ' . $nation . ' . Age ' . $age;

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •