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

Learn how to build modern digital experience apps with Crafter CMS. Download this eBook now. Brought to you in partnership with Crafter Software

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!

Crafter is a modern CMS platform for building modern websites and content-rich digital experiences. Download this eBook now. Brought to you in partnership with Crafter Software.

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 best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

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

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

{{ parent.tldr }}

{{ parent.urlSource.name }}