Show:
Questions
Responses
Print
Definitions
Functions
Object-Oriented Coding
Practical Coding
Analyzing Code
100
Always preceded with a dollar sign ($) and stores values
What is a variable
100
The built-in substr() function performs this task.
What is "finds the location of a substring within a string"
100
Objects are almost always derivatives of these
What are classes
100
In Mercurial, this command copies changes to Bitbucket (or other server)
What is "push"
100
If $x = 5, then $x++ will set $x to this value.
What is 6
200
A construct that causes a given portion of code to repeat a number of times
What is a loop
200
The built-in strlen functions finds this information.
What is the length of a string
200
This method, if it exists, is run as soon as an object is created.
What is __construct()
200
When submitting a form, always use this HTTP method.
What is POST
200
The loop: for ($x = 5; $x <= 15; $x += 5)... will repeat this many times.
What is 3
300
These are manipulated by operators in operations
What are operands
300
The built-in trim() function performs this task
What is "strips whitespace and special chracters from the beginning and end of a string"
300
Functions that reside inside of a class have this special name
What is a method
300
HTML pages are transmitted to web browsers using this protocol.
What is HTTP
300
return (strlen('some text') == 5); will return this value
What is FALSE
400
If/Else and If/Else/Elseif are examples of these kind of statements
What are conditional statements?
400
This built-in function checks to see if a string contains a numeric value.
What is is_numeric()
400
Variables that exist as part of a class definition have this special name
What are properties
400
This built-in function prints a complex variable for debugging purposes only.
What is var_dump() -- or print_r()
400
$x = 5; if ($x = 6) { echo "Yes"; } else { echo "No";} will print this value.
What is 6
500
This is another verb that describes creating an object from a class definition.
What is instantiation
500
The built-in mysql_query() function returns this
type
of variable when sent a SELECT query
What is a resource
500
Methods and properties that are available only from within the class they are created in have this keyword
What is "private"
500
This built-in function halts execution of a program
What is die() or exit()
500
echo (int) (abs(-234.34)) * (int) 1.1; will print this value on the screen.
What is 234