PHP Community Marketing Expert Interview Preparation Guide
Download PDF
Add New Question

PHP Community Marketing Expert based Frequently Asked Questions by expert members with experience as PHP Community Marketing Expert. These questions and answers will help you strengthen your technical skills, prepare for the new job test and quickly revise the concepts

60 PHP Community Marketing Expert Questions and Answers:

1 :: Explain me what are the main error types in PHP and how do they differ?

In PHP there are three main type of errors:
Notices – Simple, non-critical errors that are occurred during the script execution. An example of a Notice would be accessing an undefined variable.
Warnings – more important errors than Notices, however the scripts continue the execution. An example would be include() a file that does not exist.
Fatal – this type of error causes a termination of the script execution when it occurs. An example of a Fatal error would be accessing a property of a non-existent object or require() a non-existent file.

Understanding the error types is very important if you are new to programming because they help you understand what is going on during the development, and they will help you know what you should look for in the code during debugging.
Post Your Answer

2 :: Explain how we can get the number of elements in an array?

The count() function is used to return the number of elements in an array.

Understanding of arrays and array related helper functions it’s a knowledge that every junior developer should have.
Post Your Answer

3 :: Explain me what are the 3 scope levels available in PHP and how would you define them?

Private – Visible only in its own class
Public – Visible to any other code accessing the class
Protected – Visible only to classes parent(s) and classes that extend the current class

This is important for any developer to know because it shows an understanding that building applications is more than just being able to write code. One must also have an understanding about privileges and accessibility of that code. There are times protected variables or methods are extremely important, and an understanding of scope is needed to protect the integrity of the data in your application along with provide a clear path through the code.
Post Your Answer

4 :: Tell me what does the following code output?

$i = 016;
echo $i / 2;?

The Output should be 7. The leading zero indicates an octal number in PHP, so the number evaluates to the decimal number 14 instead to decimal 16.
Post Your Answer

5 :: Tell me what library is used for pdf in PHP?

The PDF functions in PHP can create PDF files using the PDFlib library Version 6. PDFlib offers an object-oriented API for PHP 5 in addition to the function-oriented API for PHP 4.
There is also the » Panda module. FPDF is a PHP class, which allows generating PDF files with pure PHP (without using the PDFlib library.)
F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs. FPDF requires no extension (except zlib to activate compression and GD for GIF support) and works with PHP4 and PHP5.
Post Your Answer

6 :: Explain what is smarty?

Smarty is a template engine written in PHP. Typically, these templates will include variables —like {$variable} — and a range of logical and loop operators to allow adaptability within of the template.
Post Your Answer

7 :: Do you know about the Latest Changes at Google?

In my opinion, a good candidate would have their ears to the ground in terms of what is going on at Google. Not every single update carries the same importance, so I definitely do not need a running commentary of everything that is written on Google webmaster blog.

However, whenever a major algo changes is announced, its effect on the web and your site should be taken notice of. Like I've mentioned before, I honestly don't expect to hear every tweak since Florida, but I want a detail idea of the current state of play. Recently it has been Penguin, Panda and EMDs and any good SEO should know these like they know their alphabet.

Panda - What does it do, what cause you to get hit by it, how do you mitigate against its effect, how do you recover?
Penguin - Why was it rolled out, what do you need to do, how do you recover?
EMDs downgrade - What is the history behind it, how would you future proof your client's site?

Personally, I expect details answers to such questions as the candidate will be in charge of handing down instructions to their team and also making recommendations to clients.
Post Your Answer

8 :: Explain what are a few of your favorite development tools and why?

If they say notepad you've obviously got the wrong person for the job. Not only can this help you gauge their level of competence, but it'll also see if they match the tools everyone else uses in-house.
Post Your Answer

9 :: Explain me what are a few personal web projects you've got going on?

Almost all developers have personal web projects they like to plug away at in their spare time. This is another question that can help differentiate the passionate developers from the clock-punchers. It's also a good question to end an interview with, as it's usually easy (and fun) for them to answer.
Post Your Answer

10 :: Tell me why do you think this industry would sustain your interest in the long haul?

What expectations or projects do you have for the business that would enable you to grow without necessarily advancing? What excites you about the business? What proof can you offer that your interest has already come from a deep curiosity-perhaps going back at least a few years-rather than a current whim you'll outgrow?
Sample Answer: The technology in the industry is changing so rapidly that I see lots of room for job enhancement regardless of promotions. I'm particularly interested in the many applications for multimedia as a training tool.
Post Your Answer
Add New Question