Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Toby C.
Web developer for 11 years, Native Chinese speaker, Math Ace
Tutor Satisfaction Guarantee
PHP Programming
TutorMe
Question:

Write a function that receives an array of integers as a parameter, where the very first element of the array represents the number of elements in the array. Return the largest value in the array (not including the very first element).

Toby C.
Answer:

<?php $integers=array(6,2,3,1,4,5); function psu($integers) { $c=array_shift($integers); // Delete the first element. return max($integers); // Return the largest value in the array (not including the first element). } echo "The largest value is: " . psu($integers); ?>

HTML5 Programming
TutorMe
Question:

List some HTML5 elements.

Toby C.
Answer:

article, aside, header, footer, main.

CSS
TutorMe
Question:

How to set the background color of a page? Give an example.

Toby C.
Answer:

body { background-color: blue; }

Send a message explaining your
needs and Toby will reply soon.
Contact Toby
Ready now? Request a lesson.
Start Session
FAQs
What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Session" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.