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 ScienceLibrary.info quizzes

Latest Item on Science Library

The most recent article is:

Trigonometry

View this item in the topic:

Vectors and Trigonometry

and many more articles in the subject:

Subject of the Week

Physics

Physics is the science of the very small and the very large. Learn about Isaac Newton, who gave us the laws of motion and optics, and Albert Einstein, who explained the relativity of all things, as well as catch up on all the latest news about Physics, on ScienceLibrary.info.

Gravity lens

Test your knowledge!

Question: How many dollars is 1 megacent?




Go to the article about: Units

Lugano English

Quote of the day...

Carnegie Mellon's car managed to drive coast to coast across America with very blurry vision (thirty by thirty-two pixels), a brain smaller than a worm's, and only a few assists from the human copilot. It may not have been the first truly self-driving car, but it did compare favourably with most teenage drivers.

ZumGuy Internet Promotions

English language school