Shortcut Navigation:

PHP Quiz (String, Matches, Function)

Which of the following will not combine strings $s1 and $s2 into a single string?

Given a variable $email containing the string user@example.com, which of the following statements would extract the string example.com?

Given a comma-separated list of values in a string, which function from the given list can create an array of each individual value with a single call?

What is the best all-purpose way of comparing two strings?

Which of the following PCRE regular expressions best matches the string php|architect?

^[0-9]{5}(\-[0-9]{4})?$ matches

What happens if you add a string to an integer using the + operator?

The ___________ function can be used to compare two strings using a case-insensitive binary algorithm

Which of the following functions can be used to convert the binary data stored in a string into its hexadecimal representation?

^[A-Za-z].* matches

Tagged as: string