DZone
Web Dev Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Web Dev Zone > You think you know PHP. Quiz Results!

You think you know PHP. Quiz Results!

Stoimen Popov user avatar by
Stoimen Popov
·
May. 31, 12 · Web Dev Zone · Interview
Like (0)
Save
Tweet
2.48K Views

Join the DZone community and get the full member experience.

Join For Free

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!
PHP

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

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • 7 Traits of an Effective Software Asset Manager
  • Synchronization Methods for Many-To-Many Associations
  • Comprehensive Guide to Jenkins Declarative Pipeline [With Examples]
  • Ultra-Fast Microservices: When Microstream Meets Wildfly

Comments

Web Dev Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo