Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

You think you know PHP. Quiz Results!

DZone's Guide to

You think you know PHP. Quiz Results!

· Web Dev Zone
Free Resource

Add user login and MFA to your next project in minutes. Create a free Okta developer account, drop in one of our SDKs to your application and get back to building.

1. What will be the output of the following code?

echo date('Y-m-d', strtotime('-1 month ago'));
  • Error
  • One month ago from the current date and time
  • One month in the future from the current date and time correct answer (ref)
Answers of the first question

 


2. Is it possible to extend an interface with an abstract class?

  • Yes correct answer (ref)
  • No
Answers of the second question

 

3. What is the output of the following code?

  • Error
  • 0
  • 1 correct answer (ref)
  • 2
Answers of the third question

 

4. What is the output of the following code?

  • An error
  • h
  • e correct answer (ref)
  • ello world
Answers of the fourth question

 

5. What is the output of the following code?

  • Foo bar
  • Foo Bar correct answer (ref)
  • FOO BAR
  • foo bar
Answers of the fifth question

 

Related posts:

  1. You think you know javascript. Quiz results!
  2. You think you know algorithms. Quiz results!
  3. You think you know algorithms. Quiz results!

Launch your application faster with Okta’s user management API. Register today for the free forever developer edition!

Topics:

Published at DZone with permission of Stoimen Popov, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}