{"id":217,"date":"2019-12-08T20:12:30","date_gmt":"2019-12-08T20:12:30","guid":{"rendered":"http:\/\/dcapps.tech\/freeudemy\/?p=217"},"modified":"2019-12-08T20:12:33","modified_gmt":"2019-12-08T20:12:33","slug":"100-off-cracking-php-interviews-50-questions-and-answers","status":"publish","type":"post","link":"https:\/\/dc-apps.net\/freeudemy\/100-off-cracking-php-interviews-50-questions-and-answers\/","title":{"rendered":"[100% Off] Cracking PHP Interviews : 50 Questions and Answers"},"content":{"rendered":"<div id=\"dcapp-3544169996\" class=\"dcapp-before-content_2 dcapp-entity-placement\"><a href=\"https:\/\/t.me\/freeudmeyc\" aria-label=\"Join our Telegram Channel\"><img loading=\"lazy\" src=\"https:\/\/dc-apps.net\/freeudemy\/wp-content\/uploads\/2020\/03\/join-our-telegram-channel.png\" alt=\"Join our Telegram Channel\"  srcset=\"https:\/\/dc-apps.net\/freeudemy\/wp-content\/uploads\/2020\/03\/join-our-telegram-channel.png 700w, https:\/\/dc-apps.net\/freeudemy\/wp-content\/uploads\/2020\/03\/join-our-telegram-channel-300x71.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" width=\"700\" height=\"165\"  style=\"display: inline-block;\" \/><\/a><\/div><div id=\"dcapp-381129819\" class=\"dcapp-before-content dcapp-entity-placement\" style=\"margin-bottom: 5px;\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7454916351629321\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-7454916351629321\" \ndata-ad-slot=\"9119542394\" \ndata-ad-format=\"auto\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>\n<p><strong> Get Ready for your PHP Interview with 50 PHP Interview Questions <\/strong><\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\n\n\n\n\nRequirements\n\n\n<\/p>\n\n\n\n<ul><li>Know basics of PHP<\/li><li>Is preparing for next interview<\/li><\/ul>\n\n\n\n<p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nDescription\n\n\n<\/p>\n\n\n\n<p>How about&nbsp;<strong>Quickly<\/strong>&nbsp;<strong>Revising all the Important PHP Concepts<\/strong>&nbsp;in less than&nbsp;<strong>2 Hours&nbsp;<\/strong>before an interview?<\/p>\n\n\n\n<p>Preparing\n for PHP Interview is tricky. You would need to get a good understanding\n of new features and revise concepts you used in your preparation. This \ncourse helps you&nbsp;<strong>Prepare for PHP Interview<\/strong>&nbsp;with <strong>hands-on code examples<\/strong>&nbsp;covering&nbsp;<strong>50<\/strong>&nbsp;PHP Interview Questions and Answers&nbsp;on varied range of topics listed below.&nbsp;<\/p><div id=\"dcapp-892878213\" class=\"dcapp-content dcapp-entity-placement\" style=\"margin-top: 5px;margin-bottom: 5px;\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7454916351629321\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-7454916351629321\" \ndata-ad-slot=\"3439662696\" \ndata-ad-format=\"auto\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>\n\n\n\n<p><strong>******* What You Can Expect from this Course *******<\/strong><\/p>\n\n\n\n<p>\u2714 Real Interview Questions with detailed answers<\/p>\n\n\n\n<p>\u2714 Friendly Support in the Q&amp;A section<\/p>\n\n\n\n<p>\u2714 Free Udemy Certificate of Completion on Completion of Course<\/p>\n\n\n\n<p>\u2714 30 Day &#8220;No Questions Asked&#8221; Money Back Guarantee!<\/p>\n\n\n\n<p><strong>Zero risk.<\/strong>&nbsp;<strong>30 day money-back guarantee&nbsp;<\/strong>with every purchase of the course.&nbsp;<strong>You have nothing to lose!<\/strong><\/p>\n\n\n\n<p><strong>Start Learning Now.<\/strong>&nbsp;Hit the Enroll Button!<\/p>\n\n\n\n<p><strong>******* Questions Discussed in this Interview Course *******<\/strong><\/p>\n\n\n\n<p>PHP Platform<\/p>\n\n\n\n<ul><li>What is PHP?<\/li><li>Is PHP case sensitive?<\/li><li>Is PHP weakly typed language?<\/li><li>How do we install PHP?<\/li><li>What is Composer?<\/li><li>What is Packagist?<\/li><li>How do we execute a PHP script from the command line?<\/li><li>What is virtual host?<\/li><li>What are XAMPP &amp; WAMP?<\/li><li>What is Apache server?<\/li><li>How to check current PHP version and other information about our system?<\/li><li>What is interpreter?<\/li><li>Is PHP compiled or interpreted?<\/li><li>What do we mean by a Framework?<\/li><li>What is MVC?<\/li><\/ul>\n\n\n\n<p>Datatypes and variables<\/p>\n\n\n\n<ul><li>What is a datatype?<\/li><li>How many datatypes are there?<\/li><li>What are rules for naming a variable?<\/li><li>How will you define a constant?<\/li><li>What is the purpose of constant() function?<\/li><li>What are the differences between constants and variables?<\/li><li>What are the different scopes of variables?<\/li><li>What is string?<\/li><li>What is the difference between single quoted string and double quoted string?<\/li><li>How can you convert string into array elements?<\/li><li>How can you convert array into strings?<\/li><li>How can you concatenate two or more strings?<\/li><li>Differentiate between echo and print().<\/li><li>Explain static variables.<\/li><li>What are PHP magic constants?<\/li><li>Why do we need trim() function?<\/li><li>Can you count the number of words in a string?<\/li><li>How to reverse a string?<\/li><li>How can you change cases in a string?<\/li><li>Can you replace a substring?<\/li><li>Differentiate between str_replace() and str_ireplace().<\/li><li>Differentiate between printf() and print().<\/li><li>Differentiate between strstr() &amp; strchr() functions.<\/li><li>Differentiate between strstr() and stristr().<\/li><li>Can you encode a string in PHP?<\/li><li>Differentiate between strcmp() and strncmp().<\/li><li>Is it possible to remove the HTML tags from data?<\/li><li>What is the use of gettype() in PHP?<\/li><li>What is heredoc and nowdoc?<\/li><\/ul>\n\n\n\n<p>Flow control and Iterations<\/p>\n\n\n\n<ul><li>Explain if-else statement.<\/li><li>Explain switch statement with example.<\/li><li>Differentiate between switch and if-else statement.<\/li><li>What are the different types of operators?<\/li><li>Explain arithmetic operators.<\/li><li>Explain the assignment operators.<\/li><li>Explain the logical operators.<\/li><li>Explain the unary operators.<\/li><li>Explain the comparison operators.<\/li><li>Differentiate between === and == operators in PHP.<\/li><li>Explain pre and post increment with example.<\/li><li>What do you mean by operator overloading?<\/li><li>How many loops are available in PHP?<\/li><li>Explain while loop with example.<\/li><li>Explain do-while loop with example.<\/li><li>Explain for loop with example.<\/li><li>Explain foreach loop with example.<\/li><li>How can you implement an infinite loop in PHP?<\/li><li>How can you implement recursion in PHP?<\/li><li>Differentiate between iteration and recursion.<\/li><li>Explain break statement with example.<\/li><li>Explain continue statement with example.<\/li><li>Give example of declaration in php?<\/li><li>What is require in PHP?<\/li><\/ul>\n\n\n\n<p><strong>Following questions are available with the Q&amp;A&nbsp;PDF provided in the course (videos on following questions are coming soon)<\/strong><\/p>\n\n\n\n<p>Arrays<\/p>\n\n\n\n<ul><li>What is an array?<\/li><li>How can you print an array in PHP?<\/li><li>What do we mean by the base address of an array?<\/li><li>What do we mean by keys and values?<\/li><li>What are the keys &amp; values in an indexed array?<\/li><li>How can we convert array into string?<\/li><li>How can we convert a string into an array elements?<\/li><li>How can we concatenate arrays in PHP?<\/li><li>Which function counts all the values of an array?<\/li><li>How can we check if an element exists in an array?<\/li><li>Which function inserts an element to the end of an array?<\/li><li>What is the use of array_chunk() function?<\/li><li>Why do we use extract()?<\/li><\/ul>\n\n\n\n<p>Functions<\/p>\n\n\n\n<ul><li>What is a function?<\/li><li>What are the different types of functions?<\/li><li>Classify function on basis of parameters.<\/li><li>Differentiate between parameterized and non parameterized functions.<\/li><li>Does PHP support both call by cvalue and call by reference?<\/li><li>Explain call by value.<\/li><li>Explain call by reference.<\/li><li>What are the function declaration rules?<\/li><li>How can we declare user defined functions?<\/li><li>What do we mean by actual and formal parameters?<\/li><li>Maximum how many arguments are allowed in a function in PHP?<\/li><li>Explain header().<\/li><li>What do we mean by return type of a function?<\/li><li>What is the return type of a function that doesn&#8217;t return anything?<\/li><li>Do we need to mention the return type of a function explicitly in PHP?<\/li><li>What is function that can be used to build a function that accepts any number of arguments?<\/li><li>Explain the return statement.<\/li><li>Can we use multiple return statements in a function?<\/li><li>What is the use of ini_set()?<\/li><li>What is the difference between unlink and unset functions?<\/li><li>How ereg() function works?<\/li><li>How eregi() function works?<\/li><li>What is the purpose of getdate() function?<\/li><li>What is the purpose of date() function?<\/li><li>How will you call member functions of a class?<\/li><\/ul>\n\n\n\n<p>Requests and responses<\/p>\n\n\n\n<ul><li>How can we display the correct URL of the current webpage?<\/li><li>How to get the information about the uploaded file in the receiving script?<\/li><li>What do we mean by server?<\/li><li>What is a client?<\/li><li>What do you mean by a response?<\/li><li>What is HTTP?<\/li><li>What are PHP superglobals?<\/li><li>How will we get information sent via GET method?<\/li><li>How will you get information sent via POST method?<\/li><li>What is the purpse $_REQUEST variable?<\/li><li>What is the purpose of $_FILES variable?<\/li><li>What is the purpose of $GLOBALS variable in PHP?<\/li><li>What is the purpose of $_SERVER variable in PHP?<\/li><li>What is the purpose of $_COOKIE variable in PHP?<\/li><li>What do you mean by environment variable in PHP?<\/li><li>What is the purpose of $_ENV variable in PHP?<\/li><li>What is the purpose of $_SESSION variable in PHP?<\/li><li>How will you redirect a page?<\/li><li>What is the purpose $_PHP_SELF variable?<\/li><li>How will you get the browser&#8217;s details using PHP?<\/li><li>What do you mean by HTTP status codes?<\/li><li>What are the HTTP client error codes?<\/li><li>What are the informational status codes?<\/li><li>What are the HTTP success codes?<\/li><li>How do you get the redirection related information?<\/li><li>What are the HTTP client error codes?<\/li><li>What are the HTTP server error codes?<\/li><li>What is API?<\/li><li>What is the use of an API?<\/li><li>What are types of API?<\/li><li>What is REST API?<\/li><li>Why do we need REST API?<\/li><li>Where REST API is used?<\/li><li>What is JSON?<\/li><li>Why do we need JSON?<\/li><li>How can you exchange data using JSON?<\/li><li>Differentiate between JSON &amp; XML.<\/li><li>What are the advantages of JSON?<\/li><\/ul>\n\n\n\n<p>Sessions and Cookies<\/p>\n\n\n\n<ul><li>What is Session?<\/li><li>What is Cookie?<\/li><li>Differentiate between Session &amp; Cookie.<\/li><li>How do we start a session?<\/li><li>How can we set session variable?<\/li><li>How to destroy a session?<\/li><li>How to remove value from session variable?<\/li><li>When do we need to set session variables?<\/li><li>When do we need a session and not a cookie?<\/li><li>When do we need a cookie and not a session?<\/li><li>How can we set a cookie?<\/li><li>How to modify a cookie value?<\/li><li>How will we make a check that a cookie is set or not?<\/li><li>How to retrieve all cookie values?<\/li><li>How to delete a cookie?<\/li><li>How can we implement &#8216;remember me&#8217; using PHP?<\/li><li>Classify cookies.<\/li><li>How will you delete a cookie?<\/li><li>How to track login and logout using PHP?<\/li><\/ul>\n\n\n\n<p>Filesystem management<\/p>\n\n\n\n<ul><li>How to create a file?<\/li><li>What are the other way to write in a file?<\/li><li>How will you check if a file exists or not using php?<\/li><li>How to delete a file?<\/li><li>How to copy a file?<\/li><li>How to rename file?<\/li><li>How to check whether a file or directory exists?<\/li><li>How to check path of the file in PHP?<\/li><li>How to check size of the file in PHP?<\/li><li>How to write the contents inside file?<\/li><li>Explain file() method.<\/li><li>How To change the file permissions?<\/li><li>What are different ways to get the extension of a file?<\/li><li>How to create a directory using PHP?<\/li><li>How to get files(contents) from directory?<\/li><li>How to open a directory?<\/li><li>What is include in php?<\/li><li>What is require_once in php?<\/li><li>What is include_once in php?<\/li><li>What is require() in PHP?<\/li><li>What is difference between require and include?<\/li><\/ul>\n\n\n\n<p>Regular Expressions<\/p>\n\n\n\n<ul><li>What is RegEx?<\/li><li>Why do we need RegEx?<\/li><li>How preg_match() function works?<\/li><li>Regualar Expression Notations.<\/li><li>Regualar Expression Examples.<\/li><\/ul>\n\n\n\n<p>OOPs Concepts<\/p>\n\n\n\n<ul><li>What is OOPs?<\/li><li>What is an object?<\/li><li>How can we create object of a class?<\/li><li>What is a class?<\/li><li>What are the basic features of OOPs?<\/li><li>Is PHP purely an object oriented language?<\/li><li>Differentiate between OOPs &amp; POPs.<\/li><li>What is generalization?<\/li><li>What is specialization?<\/li><li>What is aggregation?<\/li><li>What is composition?<\/li><li>What is association?<\/li><li>What is abstraction?<\/li><li>What is encapsulation?<\/li><li>What is inheritance?<\/li><li>What is super class?<\/li><li>What is a sub class?<\/li><li>How can you inherit a class in PHP?<\/li><li>What is a constructor?<\/li><li>Explain __construct().<\/li><li>Classify constructor.<\/li><li>What is a destructor?<\/li><li>Explain $this.<\/li><li>Explain multiple inheritance.<\/li><li>Does PHP support multiple inheritance?<\/li><li>Explain multi-level inheritance.<\/li><li>What is polymorphism?<\/li><li>What is method overloading?<\/li><li>Does PHP support method overloading?<\/li><li>What is method overriding?<\/li><li>What are interfaces in PHP?<\/li><li>What does the presence of operator \u2018::\u2019 represent?<\/li><li>How to define a class in PHP?<\/li><li>How will you add a constructor function to a PHP class?<\/li><li>How will you add a destructor function to a PHP class?<\/li><li>How will you access the reference to same object within the object in PHP?<\/li><li>What do you mean by access modifier?<\/li><li>Explain access modifiers in PHP.<\/li><li>Explain final class in PHP.<\/li><li>Explain abstract class.<\/li><li>What is interface?<\/li><\/ul>\n\n\n\n<p>Exception Handling<\/p>\n\n\n\n<ul><li>What do you mean by an exception?<\/li><li>Define Exception class Hierarchy.<\/li><li>How do we handle exceptions?<\/li><li>Differentiate between exception and error.<\/li><li>What do we mean by error log?<\/li><li>How do we see PHP errors?<\/li><li>What are the exception class functions?<\/li><li>What does the expression Exception::__toString means?<\/li><\/ul>\n\n\n\n<p>Security and Cryptography<\/p>\n\n\n\n<ul><li>Why do we need cryptography?<\/li><li>What do we mean by hash functions?<\/li><li>Whart is hash function in PHP?<\/li><li>Example using hash().<\/li><li>What is encoding and decoding?<\/li><li>What is SHA1?<\/li><li>Can sha1 be decrypted?<\/li><li>What is sha1_file()?<\/li><li>What are the disadvantages of sha1()?<\/li><li>What MD5 means?<\/li><li>Why can not a MD5 hash be decrypted?<\/li><li>Is md5 reversible?<\/li><li>Compare sha1() and md5().<\/li><li>What is enctype?<\/li><li>Explain each Mcrypt function supported in PHP.<\/li><li>What is cryptography authentication?<\/li><\/ul>\n\n\n\n<p>PHP and HTML<\/p>\n\n\n\n<ul><li>What is HTML?<\/li><li>Differentiate between PHP and HTML.<\/li><li>What are the different methods or HTTP verbs of sending data to the server?<\/li><li>What&#8217;s the difference between GET and POST methods.<\/li><li>How can we send email?<\/li><li>How file upload works?<\/li><\/ul>\n\n\n\n<p>PHP and SQL<\/p>\n\n\n\n<ul><li>What is SQL?<\/li><li>Why do we need SQL with PHP?<\/li><li>How many types of database connections possible in PHP.<\/li><li>Adavantages of PDO over MySQLi approach.<\/li><li>How connect to the database using PDO?<\/li><li>What is SQL injection?<\/li><\/ul>\n\n\n\n<p>Miscellaneous<\/p>\n\n\n\n<ul><li>How can we get the browser&#8217;s details using PHP<\/li><li>What is the use of Xdebug extension?<\/li><li>What is the purpose of php.ini file?<\/li><li>What is curl?<\/li><li>What is PDO in PHP?<\/li><li>What is autoloading classes in PHP?<\/li><li>Discuss die().<\/li><li>What are variable variable?<\/li><\/ul>\n\n\n\n<p>New features in PHP 7<\/p>\n\n\n\n<ul><li>What are return type declarations?<\/li><li>Explain the Exception Hierarchy introduced in PHP 7?<\/li><li>What is use of Spaceship Operator?<\/li><li>What is use of Null Coalesce Operator?<\/li><\/ul>\n\n\n\n<p><strong>Zero risk.<\/strong>&nbsp;<strong>30 day money-back guarantee&nbsp;<\/strong>with every purchase of the course.&nbsp;<strong>You have nothing to lose!<\/strong><\/p>\n\n\n\n<p><strong>Start Learning Now.<\/strong>&nbsp;Hit the Enroll Button!\n\n\nWho this course is for:\n\n<\/p>\n\n\n\n<ul><li>You are learning PHP and want to prepare for a PHP Interview<\/li><li>You are a PHP Beginner and want to test your PHP Knowledge<\/li><li>Students who want to add more depth to their PHP Knowledge<\/li><\/ul>\n\n\n\n<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link has-background\" href=\"https:\/\/www.udemy.com\/course\/cracking-php-interviews-questions-and-answers\/?couponCode=PHPINTFREE\" style=\"background-color:#900000;border-radius:29px\" target=\"_blank\" rel=\"noreferrer noopener\">Get the course<\/a><\/div>\n<div id=\"dcapp-1520289639\" class=\"dcapp-after-content dcapp-entity-placement\" style=\"margin-top: 5px;margin-bottom: 5px;\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7454916351629321\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-7454916351629321\" \ndata-ad-slot=\"1642816558\" \ndata-ad-format=\"auto\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Get Ready for your PHP Interview with 50 PHP Interview Questions<\/p>\n","protected":false},"author":1,"featured_media":218,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[1],"tags":[170,167,168,37,169],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/dc-apps.net\/freeudemy\/wp-json\/wp\/v2\/posts\/217"}],"collection":[{"href":"https:\/\/dc-apps.net\/freeudemy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dc-apps.net\/freeudemy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dc-apps.net\/freeudemy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dc-apps.net\/freeudemy\/wp-json\/wp\/v2\/comments?post=217"}],"version-history":[{"count":0,"href":"https:\/\/dc-apps.net\/freeudemy\/wp-json\/wp\/v2\/posts\/217\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dc-apps.net\/freeudemy\/wp-json\/wp\/v2\/media\/218"}],"wp:attachment":[{"href":"https:\/\/dc-apps.net\/freeudemy\/wp-json\/wp\/v2\/media?parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dc-apps.net\/freeudemy\/wp-json\/wp\/v2\/categories?post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dc-apps.net\/freeudemy\/wp-json\/wp\/v2\/tags?post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}