Search Header Logo

PHP Built in Functions Quiz 1 Practice

Authored by Stephen Franz

others

PHP Built in Functions Quiz 1 Practice
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to remove white space or a character from the left of a string argument?

ltrim
rtrim
trim
str_replace
str_ireplace

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the strtolower($text) function do?

Makes the $text argument all lowercase
Makes the $text argument all uppercase
Capitalizes the first letter of the $text argument.
Counts the number of characters in $text
Counts the number of words in $text

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the strtouper($text) function do?

Makes the $text argument all lowercase
Makes the $text argument all uppercase
Capitalizes the first letter of the $text argument.
Counts the number of characters in $text
Counts the number of words in $text

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the ucwords($text) function do?

Makes the $text argument all lowercase
Makes the $text argument all uppercase
Capitalizes the first letter of the $text argument.
Counts the number of characters in $text
Counts the number of words in $text

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the strlen($text) function do?

Makes the $text argument all lowercase
Makes the $text argument all uppercase
Capitalizes the first letter of the $text argument.
Counts the number of characters in $text
Counts the number of words in $text

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the str_word_count($text) function do?

Makes the $text argument all lowercase
Makes the $text argument all uppercase
Capitalizes the first letter of the $text argument.
Counts the number of characters in $text
Counts the number of words in $text

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to remove white space or a character from the right of a string argument?

rtrim
ltrim
trim
str_replace
str_ireplace

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?