1. What is WordPress?

The WordPress web site defines WordPress as “web software you can use to create a beautiful website or blog. “ That describes it in the simplest form possible though I will try to expand on that. WordPress is the platform that we currently use for the majority of all client web sites. It was originally used for blogs but has since expanded to be used for full web sites, both personal and business. The main reason people prefer using WordPress now is that it is extremely easy to use, even for a beginner. Once the site is setup (that is where we come in) you will be able to update the content of your web site yourself, without having to know any programming at all! If you are able to create a document in Microsoft Word then you will be bale to update your web site, it is that easy.
WordPress also allows your site to be expanded with incredible features thanks to the many plugins available. We will determine at the start of the project what you will need and everything will be setup and customized for you.

2. Tell me Is a web site on WordPress secure?

Out of the box WordPress is secure and you should not have to worry about any problems with your site. While we agree with that sentiment it does not stop us from taking extra steps to be positive your site will be secure. Part of the process of creating your site involves us taking extra measures to be sure your site will be secure for you. There are many things we will do that you will never need to understand, but unlike many design firms we will not just do a basic install and walk away. This will help prevent attacks against your web site (something that is not very common to begin with though).
There is a common myth that WordPress web sites are more prone to be attacked or hacked than a normal web site. After working on nothing but WordPress sites and blogs for the past three years I have only had to go in and repair a single site and that was due to a problem with the host of the site and not the site itself. Major businesses now use WordPress for their web sites, I am sure they would not do so if they felt it was not secure.

3. What is the difference between characters 23 and x23?

The first one is octal 23, the second is hex 23.

4. How come the code
<?php print “Contents: $arr[1]“; ?>
works, but
<?php print “Contents: $arr[1][2]“; ?>
doesn’t for two-dimensional array of mine?

Any time you have an array with more than one dimension, complex parsing syntax is required. print “Contents: {$arr[1][2]}” would've worked. /> - Yes.

5. Tell me Would you initialize your strings with single quotes or double quotes?

Since the data inside the single-quoted string is not parsed for variable substitution, it's always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution.

6. Do you know Why doesn't the following code print the newline properly?

<?php
$str = ‘Hello, there.nHow are you?nThanks for visiting Us’;
print $str;
?>
Because inside the single quotes the n character is not interpreted as newline, just as a sequence of two characters - and n.

7. What is the special meaning of __sleep and __wakeup?

__sleep returns the array of all the variables than need to be saved, while __wakeup retrieves them.

10. What is the difference between accessing a class method via -> and via ::?

:: is allowed to access methods that can perform static operations, i.e. those, which do not require object initialization.

Download Interview PDF

12. How to find out the number of parameters passed into function?

func_num_args() function returns the number of parameters passed in.

13. What is the ternary conditional operator in PHP?

Expression preceding the ? is evaluated, if it's true, then the expression preceding the : is executed, otherwise, the expression following : is executed.

14. Explain When are you supposed to use endif to end the conditional statement?

When the original if was followed by : and then the code block without braces.

15. Explain Will comparison of string “10″ and integer 11 work in PHP?

Yes, internally PHP will cast everything to the integer type, so numbers 10 and 11 will be compared.

16. How to pass a variable by value in WordPress?

Just like in C++, put an ampersand in front of it, like $a = &$b

17. How to define a constant?

Via define() directive, like define (“MYCONSTANT”, 100);

18. Do you know Would I use print “$a dollars” or “{$a} dollars” to print out the amount of dollars in this example?

In this example it wouldn't matter, since the variable is all by itself, but if you were to print something like “{$a},000,000 mln dollars”, then you definitely need to use the braces.

19. Suppose I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what's the problem?

PHP Interpreter treats numbers beginning with 0 as octal. Look at the similar PHP interview questions for more numeric problems.

20. Explain the difference between include and require?

It's how they handle failures. If the file is not found by require(), it will cause a fatal error and halt the execution of the script. If the file is not found by include(), a warning will be issued, but execution will continue.

21. What does a special set of tags <?= and ?> do in PHP?

The output is displayed directly to the browser.

22. What are the features of WordPress?

The key features of wordpress are -
1. Full standards compliance
2. No rebuilding
3. WordPress Pages
4. WordPress Links
5. WordPress Themes
6. Cross-blog communication tools
7. Comments
8. Spam protection
9. Full user registration
10. Password Protected Posts
11. Easy installation and upgrades
12. Easy Importing
13. XML-RPC interface
14. Workflow
15. Typographical niceties
16. Intelligent text formatting
17. Multiple authors
18. Bookmarklets
19. Ping away

23. How many tables a default WordPress will have?

A default wordpress will have 11 tables. They are-
1. wp_commentmeta
2. wp_comments
3. wp_links
4. wp_options
5. wp_postmeta
6. wp_posts
7. wp_terms
8. wp_term_relationships
9. wp_term_taxonomy
10.wp_usermeta
11.wp_users

25. What if I need help after the project?

That is what we are here for! You will get full training at the conclusion of the project and we will be available for email support following the project when needed. Additional one on one training will be available at an additional cost if needed.
Coming soon we will be launching a new members support area here on the web site that will include full training for clients only. This will include a number of PDF downloads, tutorials and video training. This will be available to all past and future clients.