Page 4 of 4 FirstFirst ... 234
Results 31 to 34 of 34

Thread: Day 3 - String Operations - Become PHP Expert in 30 days.

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

    Default

    PHP PROGRAMING DAY - 3

    http://php.flashwebhost.com/ramesh/day-3/strlen.php

    Code:
    <?php
    
    $sentenceOne = 'Rajamanikyam';
    echo 'Rajamanikyam' . '<br>';
    $sentenceTwo = 'Rajamanikyam is a 2005 Malayalam film, the directorial debut of Anwar Rasheed';
    echo 'Rajamanikyam is a 2005 Malayalam film, the directorial debut of Anwar Rasheed' . '<br>';
    $sentenceThree = 'Starring Megastar Mammootty in the title role';
    echo 'Starring Megastar Mammootty in the title role' . '<br><br>';
    
    echo strlen ($sentenceOne) . '<br>' ;
    echo strlen ($sentenceTwo) . '<br>' ;
    echo strlen ($sentenceThree);

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

    Default

    PHP PROGRAMING DAY - 3 UPPER CASE

    http://php.flashwebhost.com/ramesh/day-3/strtoupper.php

    Code:
     <?php
    
    $beach = 'maarari beach';
    
    echo strtoupper($beach) . '<br><br>'; 
    
    $file_1 = 'malayalam film';
    
    echo strtoupper($file_1);
    Last edited by rameshxavier; 05-15-2014 at 05:30 AM.

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

    Default

    PHP PROGRAMING DAY - 3 Upper Case Words

    http://php.flashwebhost.com/ramesh/day-3/ucwords.php

    Code:
     <?php
    
    $bike = 'I have a pulsar bike.';
    
    $bike = ucwords($bike);
    
    echo $bike . '<br><br>';
    
    $bike_1 = 'MY BIKE IS PULSAR 220.';
    
    $bike_1 = ucwords($bike_1);
    
    echo $bike_1;

  4. #34
    Join Date
    Sep 2003
    Location
    india
    Posts
    11,527

    Default

    http://php.flashwebhost.com/annie/string.php

    Code:
    <?php
    echo 'Hello Cochin <br>' ;
    echo 'Hello Kerala <br>';
    $my_variable = 'hello india';
    $my_variable = ucwords($my_variable);
    echo $my_variable ;
    echo '<br>';
    echo $my_variable . ' Welcome ';
    ?>
    
    </body>
    
    </html>

Page 4 of 4 FirstFirst ... 234

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
  •