1/31
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
data type
A ____ is the specific category of information that a variable contains
primitive types
Data types that can be assigned only a single value are called ______
Integer numbers
The set of all positive and negative numbers and zero, with no decimal places
Floating-point
Positive or negative numbers with decimal places of numbers written using exponential notation
Boolean
A logical value of “true” or “false”
String
Text such as “Hello World”
NULL
An empty value, also referred to as a ___ value
Integer
Float
Numeric Strings
Three main numeric types in PHP:
Infinity, NAN
____ - (outside the allowed range)
____ - ( stands for "Not A Number".)
var_dump()
To verify the data type of any variable/object in PHP, use the _____ function
is_int()
The ____ function checks if the type of a variable is integer
float
Another important thing to know is that even if 4 * 2.5 is 10, the result is stored as ____, because one of the operands is a float (2.5).
is_float()
The ____ function checks if the type of a variable is float
is_numeric()
The _____ function is used to check whether a variable is a number or a numeric string
intval()
The ____ function is used to get the integer value of a variable
number_format
Rounds and formats a number with a fixed number of decimal places. Adds commas or separators between thousands for better readability.
number_format
Commonly used in financial applications to display prices, totals, and currency amounts
round()
The ____ function rounds a floating-point number
string
A ____ is a sequence of characters, like "Hello world!"
double quoted
A ____ string will substitute the value of variables, and accepts many special characters, like \n, \r, \t by escaping them
single quoted
A _____ string outputs the string as it is
Boolean
The simplest variable type in PHP, a _____ variable simply specifies a true or false value
1, 0
TRUE = ___
FALSE = ____
Null
___ is a special value that indicates no value
FALSE, zero
NULL converts to boolean ___ and integer ___
isset()
Tests if a variable exists
is_null()
Determines if the given variable is set to NULL. Returns true if variable is NULL, FALSE otherwise
empty()
Determines if a variable is empty
var_dump()
To get the data type and the value of a variable, use the ____ function
data type, value
PHP var_dump() function returns the ____ and ____ of a given variable
type casting
PHP _____ is an explicit process of converting a value from one data type to another, such as from a float to an integer
array
An ____ is a special variable that can store multiple values in a single variable