Science Library - free educational site

Science Library Quiz

Functions (PHP)

Instructions: answer the questions, check them carefully, and when you are sure they are all right, press submit. The number of correct answers will be displayed.

Question 1: Which function returns the number of characters in a string?

Question 2: $name = str_replace('Peter', 'Arthur', $name); echo 'Hello'. $name; What would be the output of this line?

Question 3: What is the instruction for converting a string with mixed upper and lower to all lower case letters?

Select a topic for more Computing quizzes

Select a subject for more quizzes

Latest Item on Science Library

The most recent article is:


View this item in the topic:

Vectors and Trigonometry

and many more articles in the subject:

Subject of the Week


Science resources on Games, puzzles, enigmas, internet resources, science fiction and fact, the weird and the wonderful things about the natural world. Have fun while learning Science with


Test your knowledge!

Question: What is the gravitational field strength at the surface of a planet with density ρ and radius R?

Go to the article about: Law of Gravitation

Vitruvian Boy

Quote of the day...

The future isn't what it used to be!

ZumGuy Internet Promotions