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

Start coding today to experience the powerful engine that drives data application’s development, brought to you in partnership with Qlik.

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!

Create data driven applications in Qlik’s free and easy to use coding environment, brought to you in partnership with Qlik.

Topics:

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

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}