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";