Tuesday 25 November 2014

String Functions in PHP

Structure of the Problem Requirements 

In this programme we will implement some functions of String in Php. In example we are take two String and initialize them. And then some basic and important functions of String we can applied on them. Upper Case latter and lower case latter and Concatenate the string, these function will be applied in that example. Here is the source code of programme which help you in better understanding.

SOURCE CODE

   

<html>
<title> PHP Strings Demo </title>
<body>
<?php
echo "Simple Strings";
?>
<?php
echo "<br />";
   echo "<br />";
$f_String = "AsAd NaEeM ";
$s_String = "AN_DEvEloPer ";
echo $f_String;
echo $s_String;
echo "<br />";
echo "<br />";
?>

<?php
echo "Concate Strings";
echo "<br />";
echo "<br />";
?>
<?php
$t_String = $f_String;
$t_String .= $s_String;
echo $t_String;
echo "<br />";
echo "<br />";
?>
<?php
echo "LowerCase Strings";
echo "<br />";
echo "<br />";
?>
<?php
echo strtolower($t_String);
echo "<br />";
echo "<br />";
?>
<?php
echo "UpperCase Strings";
echo "<br />";
echo "<br />";
?>
<?php
echo strtoupper($t_String);
echo "<br />";
echo "<br />";
?>
</body>

</html>

OUTPUT OF THE PROGRAM


Functions of String
Functions of String


Share it Please
asad

About Author!

Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.

0 comments:

Post a Comment