7 most popular php interview q a for cracking inte

Page 1

7 Most Popular PHP Interview Q&A For Cracking Interview! SayTooLoud has come up with the most popular PHP interview Q&As that would help you to crack the toughest of interviews. These are some of the very basic interview questions, that most of us tend to ignore. 1. WHO IS THE FOUNDER OF PHP? Rasmus Lerdorf is considered to be the father of PHP. 2. WHAT DO YOU UNDERSTAND BY THE TERM SESSION? A session is termed as a logical object created by the PHP engine to enable you to conserve data crosswise over subsequent HTTP requests. Sessions are normally used to store impermanent data to permit numerous PHP pages to offer a total functional transaction for the same visitor. 3. WHAT IS THE USE OF THE FUNCTIONS STRSTR AND STRISTR? Function strstr() is known to return some portion of a given string from the initial occurrence of a given substring to the string’s end. E.g. :strstr(“user@example.com”,”@”) will return “@example.com”. stristr() on the other hand, is similar to strstr() with the exception that it is case insensitive. 4. WHICH ARE THE ENCRYPTION FUNCTIONS IN PHP? MD5() and CRYPT() are the encryption functions in PHP. 5. EXPLAIN THE USE OF THE HEADER() FUNCTION IN PHP The header() function sends a crude HTTP header to a client. We can utilize herder() function for page redirections. It becomes important to notice that the header() must be called prior to any actual output can be seen. 6. WHAT IS THE METHOD TO PASS A VARIABLE BY VALUE IN PHP? Similar to C++, insert an ampersand ahead of it e.g. $a=&$b; 7. WHAT KIND OF INHERITANCE IS SUPPORTED BY PHP? In PHP, an extended class is constantly dependent on a solitary base class, that is, multiple inheritances does not have support. Classes are extended utilizing the keyword ‘extends’. Include these in your list of interview preparation questions and practice them by understanding them well. It would help you during interviews. SayTooLoud wishes you all the luck !!!


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.