#2, String Functions II


#1



I have no Idea on where to start! Please help?


<html>
  <p>
    <?php
    // Get a partial string from within your own name
    // and print it to the screen!

    ?>
  </p>
  <p>
    <?php
    // Make your name upper case and print it to the screen:
    
    ?>
  </p>
  <p>
    <?php
    // Make your name lower case and print it to the screen:
    
    ?>
  </p>
</html>


#2

Fill in the answers based on the instructions. Here is a hint. To print things to the screen, use echo


#3



<?php
// Get a partial string from within your own name
// and print it to the screen!
$name = "suhail";
print $name;
$sub =substr($name,0,3);
print $sub;
?>



<?php
// Make your name upper case and print it to the screen:
$upper = strtoupper($name);
print $upper;
?>



<?php
// Make your name lower case and print it to the screen:
$lower=strtolower($name);
echo $lower;
?>



#4

To insert elements into the document use echo. PHP is not client-side software, but server-side response generating.


#6

this was quite helpful, thanks a lot..