Quiz: Strings and Files
BLANK are another word for file permissions granted to users, groups, and others.
Modes
A BLANK is a series of characters or bytes for which PHP attaches no special meaning
binary file
PHP converts the BLANK
boolean values TRUE and FALSE to 1 and 0, respectively
In PHP the BLANK function is used to change the permissions on a file.
chmod()
The BLANK (.) and the BLANK (.=) can be used to combine two strings
concatenation operator, an concatenation assignment operator
The BLANK function read the entire contents of a file into a string
file_get_contents
The BLANK function reads the entire contents of a file into a string.
file_get_contents
The BLANK function writes or appends a text string to a file
file_out_contents()
A BLANK is a special type of var that refers to the currently selected line or character in a file.
file_pointer
The BLANK function writes or appends a text string to a file and returns the number of bytes written to the file.
file_put_contents()
the BLANK function writes or appends a text string to a file and returns the number of bytes written to the file.
file_put_contents()
To prevent multiple users from modifying a file simultaneously use the BLANK function
flock()
The BLANK incrementally writes data to a text file
fwrite()
A BLANK is a special type of var that represents a resource, such as a file or directory
handle
A BLANK is a special type of variable that represents a resource, such as a file or directory.
handle
A text file....
has only printable characters and a small set of control of formatting characters
The ____ function combines an arrays elements into a single string, separated by specified characters.
implode()
A binary file...
is a series of characters of bytes for which PHP attaches no special meaning
When applied to text strings, BLANK refers to the act of dividing a string into logical component substrings or tokens.
parsing
Typical file and directory permissions include...
read, write, and execute
Typical file and directory permissions include:
read, write, and execute
There are two types of string ____ and ____ functions: functions that return a numeric position in a text string and those that return a char or substring.
search, extraction
The ____ and ____ functions are used to determine the similarity of two strings.
similar_text(), lenvenshtein()
You can use the ____ and the ____ functions to determine the similarity of whether two strings are pronounced similarly.
soundex(), metaphone()
You use the ____, ____, and ____ functions to replace text in strings.
str_replace(), str_ireplace(), subst_replace()
You can use the ____ or the ____ function to split a string into an indexed array, in which each character in the string becomes a separate element in the array.
str_split(), explode()
What function returns the number of words in a string?
str_word_count()
The ____ function performs a case-insensitive comparison of strings, whereas the ____ function performs a case-sensitive comparison of strings.
strcasecmp(), strcmp()
The most commonly used string-counting function is the BLANK function, which returns the total number of characters in a string.
strlen()
What is the most commonly used string function, which returns the total number of characters in a string?
strlen()
The BLANK function breaks a string into smaller strings, called tokens.
strtok()
The BLANK function returns the specified portion of a string
substr()
Unlike a binary file, a BLANK file translates escape sequences.
text
A BLANK has only printable characters and a small set of control of formatting characters
text file
Files and directories have three levels of access:
user, group, and other