String

 <?php

$mystr="php is a server side scripting language";

echo "<strong> the given string is :</strong> $mystr <br>";

echo "<strong> the length of string is :</strong>".strlen($mystr)."<br>";

echo "<strong> the count of string is :</strong>".str_word_count($mystr)."<br>";

echo "<strong> the reverse of string is :</strong>".strrev($mystr)."<br>";

$substr="side";

echo "<strong> the position of string is '$substr' in the string is :</strong>".strpos($mystr,$substr);


Comments

Popular posts from this blog

Web

Lab 1 ai