Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

Thread: Day 1 - Getting Started - Become PHP Expert in 30 days

  1. #21
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    Quote Originally Posted by rameshxavier View Post
    Day 1 PHP programming

    http://php.flashwebhost.com/ramesh/1.php

    Code:
    <?php
    
    echo "hello i am ramesh now i am starting my php study";
    Good, try some more complicated code with multiple echo

    Code:
    <?php
    
    echo 'hello i am ramesh now i am starting my php study';
    echo '<br>';
    echo 'PHP is the best!';
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  2. #22
    Join Date
    Jan 2008
    Location
    india,kerala-god's own country
    Posts
    14,007

    Default

    Day 1 - Another post

    http://php.flashwebhost.com/ramesh/2.php

    Code:
    <?php
    
    echo 'My car is red!';
    echo '<br>';
    echo 'My car is yellow!';
    echo '<br>';
    echo 'I have 2 car\'s!';

  3. #23
    Join Date
    Jan 2008
    Location
    india,kerala-god's own country
    Posts
    14,007

    Default

    Day 1 - My 3'rd post

    http://php.flashwebhost.com/ramesh/study1.php

    Code:
    <?php
    
    echo '<B><h1>My car is red!</h1></B>';
    echo '<br>';
    echo '<I><U><h1>My car is yellow!</h1></U></I>';
    echo '<br>';
    echo '<font color=green><I><U><h1>I have 2 car\'s!</h1></U></I></font>';
    Last edited by rameshxavier; 05-09-2014 at 07:09 AM.

  4. #24
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    Quote Originally Posted by rameshxavier View Post
    Day 1 - My 3'rd post

    http://php.flashwebhost.com/ramesh/study1.php

    Code:
    <?php
    
    echo '<B><h1>My car is red!</h1></B>';
    echo '<br>';
    echo '<I><U><h1>My car is yellow!</h1></U></I>';
    echo '<br>';
    echo '<font color=green><I><U><h1>I have 2 car\'s!</h1></U></I></font>';
    Here is an example of escaping string in PHP

    Code:
    echo '<font color=green><I><U><h1>I have 2 car\'s!</h1></U></I></font>';
    echo 'String here';

    If string itself contain a single quote, that need to be escaped with \ character like this

    Code:
    car\'s!
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  5. #25
    Join Date
    May 2014
    Posts
    21

    Default

    <?php

    echo 'Ranan\'s new production - Andhar Nogori Choupot Raja';

  6. #26
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    Quote Originally Posted by Austinwhite View Post
    <?php

    echo 'Ranan\'s new production - Andhar Nogori Choupot Raja';
    Good. try modify the text, so we have something new :)
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  7. #27
    Join Date
    Nov 2009
    Posts
    76,596

    Default

    http://php.flashwebhost.com/sherly/poem.php

    Code:
    <?php
    
    echo '<h1><b><leftside>Thank You</leftside></b></h1>' ;
    
    echo 'I thank you right now ';
    echo '<br>';
    echo 'for being my friend.';
    echo '<br>';
    echo 'No strings attached, no being';
    echo '<br>';
    echo 'condemned.';
    echo '<br>';
    echo 'Taking me in, with little or lot.';
    echo '<br>';
    echo 'Unconditional a word';
    echo '<br>';
    echo 'this world has forgot.';
    echo '<br>';
    echo 'You hear me .';

  8. #28
    Join Date
    Apr 2005
    Posts
    46,704

  9. #29
    Join Date
    Sep 2003
    Posts
    3,040

    Default

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

    Code:
     <?php
    
    echo 'Hello world';
    Good, try adding some more text, refer to code posted by sherly above.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  10. #30
    Join Date
    Feb 2010
    Posts
    35

    Wink

    PHP Code:
    <?php
    echo " Be the man";
    ?>

Page 3 of 3 FirstFirst 123

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
  •