Quotes and Strings
Anatomy of a URL
echo echo
It's Complicated
Silly Strings
100
It's the result of: echo 'Hello World';
What is Hello World
100
The "search string" of this URL: http://Tech30.com/mr.h/Unit1/math.php?a=12&b=14
What is a=12&b=14
100
It's the simplest way to echo out the value contained in the variable $x
What is echo $x;
100
The symbol used to test whether or not TWO expressions are both true is
What is && What is and
100
It's what is echoed when you execute: $x = 'Hello'; echo substr ($x, 1, 2);
What is el
200
It's the result of: $x = 'Hello'; echo $x.'World';
What is HelloWorld
200
It's how you echo the x value from the following URL: http://Tech30.com/mr.h/Unit1/math.php?x=12&y=14
What is echo $_GET['x'];
200
To make a new-line appear in a page's source, but not when displayed to the screen, you need to echo this.
What is \n
200
It's the expression to test whether $x is less than 0 or $x is greater than 100
What is $x < 0 || $x > 100 What is $x < 0 or $x > 100
200
It's what is echoes when you execute: $x = 'Hello'; echo substr ($x, 3);
What is lo
300
It's what is echoed as a result of: $x = 'Hello'; echo "$x Universe";
What is Hello Universe
300
It's what is displayed when the following code is accessed with this URL: http://Tech30.com/mr.h/Unit1/math.php?y=15 if (isset($_GET['x']) == false) echo 'Error!'; else echo 'Success!';
What is Error!
300
If $x contains the string 'blue', what will the following code accomplish: Hello
What is What is Display the world Hello in blue font
300
It's then name of the problem caused by the following code: $x = 0; while ($x < 100) { echo $x; }
What is An infinite loop
300
It's what is echoed when you execute the following: $x = 'Hello'; echo strcspn ($x, 'AEIOUaeiou');
What is 1
400
It's what is echoed as a result of: $x = 'Technology'; echo 'I <3 $x';
What is I <3 $x
400
It's what is displayed when the following code is accessed with this URL: http://Tech30.com/mr.h/Unit1/math.php?x=hello&y=15 if (is_numeric($_GET['x']) == false) echo 'Letters!'; else echo 'Numbers!';
What is Letters!
400
It's what is displayed to the screen when you execute: echo "Hello\nWorld";
What is Hello World (all on one line, separated by a space)
400
It's the for-loop equivalent of the following: $i = 5; while ($i < 100) { echo $i; $i = $i + 1; }
What is for ($i=5; $i < 100; $i = $i + 1) { echo $i; }
400
It's what is echoed when you execute the following: $x = 'Hello'; echo strcspn ('aeiou', $x);
What is 1
500
It's what is echoed as a result of: $x = "ant"; echo "I, for one welcome our ".$x." overlords";
What is I, for one welcome our ant overlords.
500
It's what is displayed when the following code is accessed with this URL: http://Tech30.com/mr.h/Unit1/math.php?y=15 echo is_numeric($_GET['x])?'Yay':'Boo';
What is A php error that index 'x' is not found.
500
It's the php statement to echo a number between 1 and 10:
What is echo rand(1,10);
500
It's the result of: $x = 10; $y = 5; if ($x > 10 || $y < 10) echo "It's a small "; echo 'world'
What is It's a small world
500
It's what is echoed when you execute the following: $x = 'Hello'; echo substr ($x, strcspn ($x, 'l'), strcspn ($x, 'l') );
What is ll
M
e
n
u