PWD - Strings Assn

esse quam videri
Jump to: navigation, search
<html>

<head>
	<style type="text/css">
	
	.question
	{
		font-family: Georgia, "Times New Roman", Times, serif;
		color: #333;
	}
	
	.answer
	{
		font-family: Arial, Helvetica, sans-serif;
		color: red;
		margin-left: 20px;
	}
	
	</style>
	
</head>

<body>
    <p>\"How now, you're a brown cow?\"</p>
    
    <!-- QUESTION 1 -->
    
    <p class="question">1.) Hash the string and echo the hash.</p>
    
    <p class="answer"><?php
    
	
    ?></p>
    
    <!-- QUESTION 2 -->
    
    <p class="question">2.) Echo the length of the string.</p>
    
    <p class="answer"><?php
    
	
	?></p>
    
    <!-- QUESTION 3 -->
    
    <p class="question">3.) Strip the backslashes from the phrase.</p>
    
    <p class="answer"><?php
	
	
	?></p>
    
    <!-- QUESTION 4 -->
    
    <p class="question">4.) Escape the string created in the previous step.</p>
    
    <p class="answer"><?php
	
	
    ?></p>
    
    <!-- QUESTION 5 -->
	
	<p class="question">5.) Echo just "cow?" from this string.</p>
    
    <p class="answer"><?php
	
	
	?></p>
    
    <!-- QUESTION 6 -->
    
    <p class="question">6.) Replace brown with purple.</p>
    
    <p class="answer"><?php
	
	
	?></p>
    
    <!-- QUESTION 7 -->
    
    <p class="question">7.) Turn the above into a statement.</p>
	
	<p class="answer"><?php
	
	
	?></p>
    
    <!-- QUESTION 8 -->
    
    <p class="question">8.) Uppercase the first letter of each word.</p>
	
	<p class="answer"><?php
	
	
	?></p>
    
    <!-- QUESTION 9 -->
    
    <p class="question">9.) Write an if statement that tests a variable to see if it equals the above phrase. If it does, that if statement should echo the above phrase, then the phrase "In a while crocodile."</p>
	
	<p class="answer">
	<?php
	
	
	?>
	</p>
	
</body>
</html>