PHP Community Marketing Expert

  Home  Social Networking And Marketing  PHP Community Marketing Expert


“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”



61 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.

 197 views

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.

 163 views

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.

 159 views

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.

 146 views

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.

 173 views

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.

 140 views

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.

 197 views

12⟩ Tell me how would you declare a function that receives one parameter name hello?

If hello is true, then the function must print hello, but if the function doesn’t receive hello or hello is false the function must print bye.

<?php

function showMessage($hello=false){

echo ($hello)?'hello':'bye';

}

?>

In this question, the interviewer can evaluate if the developer knows how to declare a function and how they would manage the fact of the parameter can or cannot be on the function call. The interviewer can also evaluate if the developer knows the if syntax and if they knows how to print text(echo function).

 148 views

13⟩ Tell me what are getters and setters and why are they important?

Getters and setters are methods used to declare or obtain the values of variables, usually private ones. They are important because it allows for a central location that is able to handle data prior to declaring it or returning it to the developer. Within a getter or setter you are able to consistently handle data that will eventually be passed into a variable or additional functions. An example of this would be a user’s name. If you are not using a setter and just declaring the $userName variable by hand you could end up with results as such: "kevin", "KEVIN", "KeViN", "", etc. With a setter you can not only adjust the value, for example, ucfirst($userName), but you can also handle situations where the data is not valid such as the example where "" is passed. The same applies to a getter – when the data is being returned, you can modify the results to include strtoupper($userName) for proper formatting further up the chain.

This is important for any developer who is looking to enter a team-based / application development job to know. Getters and setters are often used when dealing with objects, especially ones that will end up in a database or other storage medium. Because PHP is commonly used to build web applications you will run across getters and setters in more advanced environments, even as a junior developer. They are extremely powerful yet not talked about very much. You can really impress an interviewer by knowing what they are and how to use them early on.

 145 views

14⟩ Tell me what PSR Standards do you follow? Why would you follow a PSR standard?

You should folow a PSR because coding standards often vary between developers and companies. This can cause issues when reviewing or fixing another developer’s code and finding a code structure that is different from yours. A PSR standard can help streamline the expectations of how the code should look, thus cutting down confusion and in some cases syntax errors.

 201 views

15⟩ Tell me what are magic methods?

☛ Magic methods are member functions that are available to all the instance of class. Magic methods always start with “__”. Eg. __construct.

☛ All magic methods need to be declared as public

☛ To use a method, it should be defined within the class or program scope

☛ Various Magic Methods used in PHP 5 are: __construct() __destruct() __set() __get() __call() __toString() __sleep() __wakeup() __isset() __unset() __autoload() __clone().

 192 views

16⟩ Explain me your Link Building Process?

I asked this to simply know the candidates understanding of the link building process. This question allowed me to get beyond the typical 'a link must be from relevant site'. You would expect this kind of answers interviewing an exec. What I was looking for was more to do with work load split, data recording, site evaluation and overall time management skills. Link building is a tedious task and it's important that as a senior SEO specialist you are aware that people in charge of this can easily become overwhelmed.

Even though not explicitly asked, a question like this also gives me key insight into how the candidate views link building. If all I'm hearing are directory submissions, blog commenting, page rank and exact matching anchors you're less likely to be called in for a second interview. I'm more interested in hearing about outreach campaigns, what you did to attract links in the past and content partnerships. I'm also interested in creative ideas used to build links.

I'm also big on strategy. Each campaign is different and for me, a one size fits all approach cannot give the best result. Therefore it is crucial that candidate put across that link building for an educational site is not the same for say, travel insurance.

 172 views

17⟩ Explain do you prefer to work alone or on a team?

This is an important question to ask depending on the work environment. If your project is going to require close interaction with other developers it's very handy to have someone who has had that kind of experience. On the other hand, many developers thrive while going solo. Try to find a developer that fits your needs.

 153 views

18⟩ Tell me what web browser do you use?

There is a right answer to this question: all of them. A competent developer should be familiar with testing cross-browser compatibility by using all the major web browsers. Obviously they'll have a primary browser they use for surfing, but their answer to this question might be a good way for you to segue to asking how extensively they test cross-browser issues. Also, if it's some kind of css/html position seeing what toolbars they have installed can be a good metric of their skillset (I personally find the web developer toolbar for firefox to be invaluable)

 165 views

19⟩ Tell me what are your aspirations beyond this job?

Again, don't fall into the trap of specifying job titles. Stick to a natural progression you see as plausible. How should this job grow for the good of the organization? Then turn your attention once again to the job at hand. If you seem too interested in what lies beyond this job, the interviewer will fear that you won't stick around for long.

Sample Answer: Beyond this job as a marketing assistant, I see myself moving up through marketing analysis into brand management and eventually running a category. I'm aware that there are several skills I need to develop in the interval, and I believe with your continuing-education program and my own motivation for self-improvement, I'll have those skills when the opportunities arise for greater responsibility. That's why I'm determined to learn from the ground up, starting as a marketing assistant.

 126 views