beta it republik » News

News

Untitled Document
News

22 Questions and Answers from PHP Job Interviews

If you are attending a job interview for a PHP position, you will do well to read Matt Wilkin's answers to some of the most commonly asked questions. In a two parter series, Matt has provided anwers to queries such as:

  • Which of the following will NOT add john to the users array?
  • What’s the difference between sort(), assort() and ksort? Under what circumstances would you use each of these?
  • What is the difference between a reference and a regular variable? How do you pass by reference and why would you want to?
  • What functions can you use to add library code to the currently running script?
  • What is the difference between foo() & @foo()?
  • How do you debug a PHP application?
  • What does === do? What’s an example of something that will give true for ‘==’, but not ‘===’?
  • How would you declare a class named “myclass” with no methods or properties?
  • How would you create an object, which is an instance of “myclass”?
  • How do you access and set properties of a class from within the class?
  • What is the difference between include, include_once? and require?
  • What function would you use to redirect the browser to a new page?
  • What function would you use to redirect the browser to a new page?
  • What's the difference between mysql_fetch_row() and mysql_fetch_array()?
  • Given a line of text , how would you write a regular expression to strip all the HTML tags from it?
  • What's the difference between the way PHP and Perl distinguish between arrays and hashes?
  • How can you get round the stateless nature of HTTP using PHP?
  • What does the GD library do?
  • Name a few ways to output (print) a block of HTML code in PHP?
  • Is PHP better than Perl? - Discuss.

Matt is now asking companies to send them his interview questions, so he can take a stab at answering them to help others learn.



Comments



Name:




Comment:

Captcha Verification !
captcha_image