PHP interview questions
Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: PHP interview questions

  1. #1
    Junior Member
    Join Date
    Jun 2013
    Posts
    2

    PHP interview questions

    What're some frequent php interview questions prospects should go into php related job interviews expecting?

  2. #2
    Senior Member
    Join Date
    Apr 2003
    Location
    Flanders Fields
    Posts
    5,378
    How long have you been working with PHP? What PHP frameworks do you know? What is your IDE? What is your development environment like?
    IMPORTANT: STOP using the mysql extension. Use mysqli or pdo instead.
    World War One happened 100 years ago. Visit Old Grey Horror for the agony and irony.

  3. #3
    High Energy Magic Dept. NogDog's Avatar
    Join Date
    Aug 2006
    Location
    Ankh-Morpork
    Posts
    14,187
    Give some examples of ways to stop SQL injection attacks/errors.

    What is the difference between "extends" and "implements" when defining a class?

    How do you test your code while developing it?

    What is the difference between an inner join and a left join? (Yeah, it's SQL, not PHP, but it almost always goes hand-in-hand with PHP coding.)
    Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be." ~ from Nation, by Terry Pratchett

    "But the main reason that any programmer learning any new language thinks the new language is SO much better than the old one is because hes a better programmer now!" ~ http://www.oreillynet.com/ruby/blog/...ck_to_p_1.html


    eBookworm.us

  4. #4
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    7,956
    What are your salary requirements?

    Show us your work.

    We are planning to do a project that ($foo) ... how would you go about creating such a project?
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

  5. #5
    Senior Member
    Join Date
    Mar 2009
    Posts
    985
    When is it appropriate to use the identical === operator instead of the comparison/equals == operator?
    Declare variables, not war.

  6. #6
    Administrator Steve R Jones's Avatar
    Join Date
    Nov 2011
    Location
    Dallas, TX
    Posts
    125
    Or if all else fails - Google-> PHP interview questions

  7. #7
    Junior Member
    Join Date
    Jul 2013
    Posts
    0
    Some of the questions would be as:

    1.What's your experience in PHP?
    2.What are you good at in php?
    3.Difference between php and java?
    4.Difference between Class and Interface?
    5.What is MVC?
    6.How PHP session works?
    7.What is polymorphism?

    These are all some of the frequently asked question in php. I'm a newbie here and want to assist people and befriend Glad to meet you!

  8. #8
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    7,956
    Maybe we need a thread about "Dumb Job Requirements". For example:

    Quote Originally Posted by some_job_site
    5-7 years of Experience with: PHP, MySQL, CSS3, HTML5, JS, jQuery
    Given that HTML5 was released (officially) just 10 months ago ... seems a tad stiff ... miracle workers, anyone?

    Oh, and mods ... SPAM post above, I think....
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

  9. #9
    PHP Witch laserlight's Avatar
    Join Date
    Apr 2003
    Location
    Singapore
    Posts
    13,741
    Quote Originally Posted by dalecosp
    Given that HTML5 was released (officially) just 10 months ago ... seems a tad stiff ... miracle workers, anyone?
    You missed the whole point. They are looking for time travellers so as to extract a winning advantage in other ways.

    Quote Originally Posted by dalecosp
    Oh, and mods ... SPAM post above, I think....
    Good point.
    Use Bazaar for your version control system
    Read the PHP Spellbook
    Learn How To Ask Questions The Smart Way

  10. #10
    Senior Member
    Join Date
    Apr 2003
    Location
    Flanders Fields
    Posts
    5,378
    Quote Originally Posted by laserlight View Post
    You missed the whole point. They are looking for time travellers so as to extract a winning advantage in other ways.
    Why stop there? Obviously HTML6 is the new black. You probably never heard of it but I was into it way before it was cool.
    IMPORTANT: STOP using the mysql extension. Use mysqli or pdo instead.
    World War One happened 100 years ago. Visit Old Grey Horror for the agony and irony.

  11. #11
    PHP Witch laserlight's Avatar
    Join Date
    Apr 2003
    Location
    Singapore
    Posts
    13,741
    Quote Originally Posted by sneakyimp
    Why stop there? Obviously HTML6 is the new black. You probably never heard of it but I was into it way before it was cool.
    Remember, they are not time travellers, so they do not know if HTML6 does happen. However, speculating that HTML5 would become official is more reasonable.
    Use Bazaar for your version control system
    Read the PHP Spellbook
    Learn How To Ask Questions The Smart Way

  12. #12
    Pedantic Curmudgeon Weedpacket's Avatar
    Join Date
    Aug 2002
    Location
    General Contact Unit "Coping Mechanism"
    Posts
    22,116
    Hi; I just came here from 2043 to tell you that the reason they're not asking for HTML6 is because the version number only got as far as 5.5 before the Singularity and the machine takeover happened, making web pages and apps obsolete. At first EXI-RPC was used instead, but that was deprecated after three months in favour of proxied supercompilation. That lasted about a week or so before recorrelation entanglement became the standard mechanism for sharing state.
    THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER
    FAQs! FAQs! FAQs! Most forums have them!
    Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all

  13. #13
    High Energy Magic Dept. NogDog's Avatar
    Join Date
    Aug 2006
    Location
    Ankh-Morpork
    Posts
    14,187
    Which proves what I've suspected all along: Weedpacket is an AI, since we all know that once the singularity occurs, all living humans will be exterminated, possibly after first having their mind states uploaded into the interwebs. Hah, you have failed my Turing test!
    Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be." ~ from Nation, by Terry Pratchett

    "But the main reason that any programmer learning any new language thinks the new language is SO much better than the old one is because hes a better programmer now!" ~ http://www.oreillynet.com/ruby/blog/...ck_to_p_1.html


    eBookworm.us

  14. #14
    Senior Member
    Join Date
    Apr 2003
    Location
    Flanders Fields
    Posts
    5,378
    I always knew he was a process. Such a complete and orderly understanding of computing is just not plausible in a meat suit.
    IMPORTANT: STOP using the mysql extension. Use mysqli or pdo instead.
    World War One happened 100 years ago. Visit Old Grey Horror for the agony and irony.

  15. #15
    PHP Witch laserlight's Avatar
    Join Date
    Apr 2003
    Location
    Singapore
    Posts
    13,741
    Quote Originally Posted by sneakyimp
    I always knew he was a process. Such a complete and orderly understanding of computing is just not plausible in a meat suit.
    Aye, I recall the time when he disagreed with the Abelson and Sussman quote from the preface to SICP: "programs must be written for people to read, and only incidentally for machines to execute". It all becomes clear now.
    Use Bazaar for your version control system
    Read the PHP Spellbook
    Learn How To Ask Questions The Smart Way

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •