practice2 - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of practice2.php
- <html>
- <body>
- <?php
- $str="My name is KHAN";
- $str5="my name is Sonoo jaiswal";
- $str=strtolower($str);
- $str2=strtoupper($str);
- $str3=ucfirst($str);
- $str4=lcfirst($str);
- $str6=ucwords($str5);
- $str7=strrev($str5);
- $str8=strlen($str5);
- echo “strtolower: ”.$str.”<br>”;
- echo “strtoupper: ”.$str2.”<br>”;
- echo “ucfirst: ”.$str3.”<br>”;
- echo “lcfirst: ”.$str4.”<br>”;
- echo “ucwords: ”.$str6.”<br>”;
- echo “strrev: ”.$str7.”<br>”;
- echo “strlen: ”.$str8.”<br>”;
- ?>
- <html>