Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
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;
Last edited by sherlyk; 05-10-2014 at 03:34 PM.
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.
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
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);
Bookmarks