Podcast
Questions and Answers
The strpos() function finds the numerical position of a particular ______ in a string.
The strpos() function finds the numerical position of a particular ______ in a string.
character
The substr() function takes a string, an integer (the position at which the desired substring starts), and an optional third integer argument that is the length of the desired ______.
The substr() function takes a string, an integer (the position at which the desired substring starts), and an optional third integer argument that is the length of the desired ______.
substring
If no third argument is given in the substr() function, the substring is assumed to continue until the ______.
If no third argument is given in the substr() function, the substring is assumed to continue until the ______.
end
The numbering in PHP arguments that deal with numerical string positions starts with ______ rather than 1.
The numbering in PHP arguments that deal with numerical string positions starts with ______ rather than 1.
Signup and view all the answers
The statement: $my_string_var.= $new_addition; is exactly equivalent to: $my_string_var = $my_string_var.$new_addition; This demonstrates ______ in PHP.
The statement: $my_string_var.= $new_addition; is exactly equivalent to: $my_string_var = $my_string_var.$new_addition; This demonstrates ______ in PHP.
Signup and view all the answers
The function used to find the location of a particular character in a string is ______.
The function used to find the location of a particular character in a string is ______.
Signup and view all the answers
The function used to select a portion of a string is ______.
The function used to select a portion of a string is ______.
Signup and view all the answers
The statement: echo(substr("Take what you need, and leave the rest behind",23)); prints the string ______.
The statement: echo(substr("Take what you need, and leave the rest behind",23)); prints the string ______.
Signup and view all the answers
The statement: echo(substr("Take what you need, and leave the rest behind",5, 13)); prints ______.
The statement: echo(substr("Take what you need, and leave the rest behind",5, 13)); prints ______.
Signup and view all the answers
The strpos() function helps in finding the numerical position of a specific ______ in a string.
The strpos() function helps in finding the numerical position of a specific ______ in a string.
Signup and view all the answers