$a="CHANDIGARH";
$b= strlen($a);
$c= $a[4];
print "Value of a=".$a."<br>";
print "Lenght of $a=".$b;
print "on the 4 position=".$c;
$a="CHANDIGARH";
$b=strlen($a);
$c=$a[4];
print "Value of a=".$a."<br>";
print "Lenght of $a=".$b."<br>";
print "on the 4 position=".$c;
$a="CHANDIGARH";
$b=strlen($a);
for($c=0; $c< $b; $c++)
{
print $a[$c]." ";
}
$a="CHANDIGARH";
$b= strlen($a);
for($c=0; $c< $b; $c++)
{
print $a[$c]." ";
}
$a="CHANDIGARH";
$b=strlen($a);
for($c=0; $c<$b; $c++)
{
print $a[$c]." ";
}
$a="CHANDIGARH";
$b=strlen($a);
for($c=0;$c<$b; $c++)
{
print $a[$c]." ";
}
$a="Raman Kumar";
$b=strpos($a, "r");
echo $a."<br>";
echo $b;
$b= strlen($a);
$c= $a[4];
print "Value of a=".$a."<br>";
print "Lenght of $a=".$b;
print "on the 4 position=".$c;
$a="CHANDIGARH";
$b=strlen($a);
$c=$a[4];
print "Value of a=".$a."<br>";
print "Lenght of $a=".$b."<br>";
print "on the 4 position=".$c;
$a="CHANDIGARH";
$b=strlen($a);
for($c=0; $c< $b; $c++)
{
print $a[$c]." ";
}
$a="CHANDIGARH";
$b= strlen($a);
for($c=0; $c< $b; $c++)
{
print $a[$c]." ";
}
$a="CHANDIGARH";
$b=strlen($a);
for($c=0; $c<$b; $c++)
{
print $a[$c]." ";
}
$a="CHANDIGARH";
$b=strlen($a);
for($c=0;$c<$b; $c++)
{
print $a[$c]." ";
}
$a="Raman Kumar";
$b=strpos($a, "r");
echo $a."<br>";
echo $b;
No comments:
Post a Comment