Quotes help make search much faster. Example: "Practice Makes Perfect"
Thursday, March 7, 2013
Codecademy Sample Solution: Semicolons
<!DOCTYPE html>
<html>
<head>
<title>Oh No!</title>
</head>
<body>
<p><?php
echo "Oh, the humanity!";
?></p>
</body>
</html>
Codecademy Sample Solution: Variables
<!DOCTYPE html>
<html>
<head>
<title>Variable Magic</title>
</head>
<body>
<!-- Add your PHP code between the <p></p> tags! -->
<p>
<?php $myFirstVariable = 0;
echo $myFirstVariable; ?>
</p>
</body>
</html>
Codecademy Sample Solution: Strings
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<!-- Echo your string between the <p></p> tags! -->
<p>
<?PHP echo "A string " . "of my choice!"; ?>
</p>
</body>
</html>
Codecademy Sample Solution: Arithmetic
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<!-- Include your PHP code between the <p></p> tags! -->
<p>
<?PHP echo 17 * 123; ?>
</p>
</body>
</html>
Codecademy Sample Solution: Echo
<!DOCTYPE html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>Hello, World!</title>
</head>
<body>
<!-- Add your PHP code in the tag below! -->
<h1><?php
echo "I'm learning PHP!";
?></h1>
</body>
</html>
Codecademy Sample Solution: Just a New Tag
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="style.css"/>
<title>Summing Things Up</title>
</head>
<body>
<p>
<?php echo 40+2; ?>
</p>
</body>
</html>
Codecademy Sample Solution: Why Learn PHP?
<!DOCTYPE html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>Get Started!</title>
</head>
<body>
<p><?php echo "My first line of PHP!"; ?></p>
</body>
</html>
Subscribe to:
Posts (Atom)
This is an example of scrolling text using Javascript.
Popular Posts
-
# Codecademy sample solution # What are the four commonly used HTTP methods ("verbs")? # A: FIND, SEND, UPDATE, REMOVE # B: ...
-
favorite_animal ||= "dog" favorite_animal ||= "cat"
-
<!--sample solution--> <html> <head> <title>Week 13 Project</title> </head> ...
-
Answer: Alt - p p stands for previous. If you keep pressing Alt - p, you will continue cycling back through commands you typed before. I...
-
//sample solution def isEven(x): if(x % 2 == 0): return "yep" else: return "nope"
-
$("#tours > li")
-
<!-- Sample solution to index.html --> <!DOCTYPE html> <html> <body> <div class="nav"> ...
-
#sample solution hungry = false unless hungry puts "I'm writing Ruby programs!" else puts "Time to eat!...
-
//sample solution var yourName = "Pam"; var gender = "female"; var result; //Line 10 starts an if statement //Ne...
-
<html> <head> <!-- Add the Parse SDK here! --> <script src="http://www.parsecdn.com/js/par...