Good
Code:<?php
$movieName = 'Peruvannapurathe Visheshangal' ;
echo strlen($movieName) ;
echo '<br>';
echo strtolower($movieName) ;
echo '<br>';
echo strtoupper($movieName) ;
Printable View
http://php.flashwebhost.com/sherly/pen.php
Code:<?php
$myPen = 'I have a blue pen';
$myPen = ucwords($myPen);
echo $myPen;
echo '<br>';
$myPencil = 'I HAVE A GREEN PENCIL';
$myPencil = ucwords($myPencil);
echo $myPencil;
DAY 3 PHP PROGRAMMING
http://php.flashwebhost.com/tom/strtoupper.php
Code:
<?php
$movieName = 'Drishyam' ;
$banner = 'Aashirvad Cinemas' ;
$director = 'Jeethu Joseph' ;
echo strtoupper($movieName) ;
echo '<br>';
echo strtoupper($banner) ;
echo '<br>';
echo strtoupper($director) ;
http://php.flashwebhost.com/sherly/kitty.php
Code:<?php
$myCat = 'I love my kitty';
$myCat = str_replace('kitty', 'puppy', $myCat);
echo $myCat;
http://php.flashwebhost.com/annie/test.php
Code:
<?php
$actressName = 'Meera jasmine';
$actressName = str_replace ('jasmine', 'Anil John', $actressName);
echo $actressName;
DAY 3 PHP PROGRAMMING
http://php.flashwebhost.com/tom/strtolower.php
Code:
<?php
$studentName = 'Tina' ;
$schoolName = 'Bishop Moore';
$class = 'LKG' ;
echo strtolower($studentName);
echo '<br>';
echo strtolower($schoolName);
echo '<br>';
echo strtolower($class) ;
In 3rd day tutorial, under ucfirst() function, added PHP code for ucwords()
Please edit and add examples of ucfirst() also.
DAY 3 PHP PROGRAMMING
ucfirst
---------
http://php.flashwebhost.com/tom/ucfirst_1.php
Code:
<?php
$movieName = 'malayalam film perucahzhi';
$movieName = ucfirst($movieName);
$starring = 'mohanlal, mukesh';
$starring = ucfirst($starring);
echo $movieName;
echo '<br>';
echo $starring;
http://php.flashwebhost.com/tom/ucfirst.php
Code:
<?php
$filmName = 'peruchazhi';
$director = 'arun vaidyanathan';
$producer = 'sandra thomas';
echo ucfirst($filmName);
echo '<br>';
echo ucfirst($director);
echo'<br>';
echo ucfirst($producer);
ucwords
-----------
http://php.flashwebhost.com/tom/ucwords_1.php
Code:
<?php
$movieName = 'malayalam film perucahzhi';
$movieName = ucwords($movieName);
$starring = 'mohanlal, mukesh';
$starring = ucwords($starring);
echo $movieName;
echo '<br>';
echo $starring;
http://php.flashwebhost.com/tom/ucwords.php
Code:
<?php
$filmName = 'peruchazhi';
$director = 'arun vaidyanathan';
$producer = 'sandra thomas';
echo ucwords($filmName);
echo '<br>';
echo ucwords($director);
echo'<br>';
echo ucwords($producer);