php technical interview questions for freshers

What is PHP? 10.Question : What is the difference between the functions unlink and unset? The function parse_ini_file() enables us to load in the ini file specified in filename and returns the settings in it in an associative array. Uses of PHP: It performs system functions, i.e. Just use the PHP CLI program with the option -a as follows: 8) What is the correct and the most two common way to start and finish a PHP block of code? Here, you can read about PHP Array related Interview Questions & Answers. For example, it is possible to write a .csv file, to choose for example comma as a separator between fields and then to open the file with Excel. 51) How is a constant defined in a PHP script? You can attach the document.formname.submit() method to onclick, onchange events of different inputs and perform the form submission. 26) What should we do to be able to export data into an Excel file? 83) How can we determine whether a PHP variable is an instantiated object of a certain class? The following code can be used for it, header("Location:index.php"); How stop the execution of a php scrip ? 5) What is the actually used PHP version? What are the common uses of PHP? The result set can be handled using mysqli_fetch_array, mysqli_fetch_assoc, mysqli_fetch_object or mysqli_fetch_row. After Technical Interview Shortlisted candidates need to face HR Interview. 46) what is the static variable in function useful for? mysqli_affected_rows() return the number of entries affected by an SQL query. 88) How can we determine whether a variable is set? 45) Is it possible to remove the HTML tags from data? The first code is faster than the second code especially for large large sets of data. This single scope spans included and required files as well. 2. mysql_fetch_array This list contains popular & frequently asked interview questions related to PHP Arrays functions. What are your strengths? $_SERVER[’HTTP_USER_AGENT’] variable. If we would like to pass values through a form or an URL, then we need to encode and to decode them using htmlspecialchars() and urlencode(). Technical Interview Questions and Answers. For the most part, all PHP variables only have a single scope. Answer : By using 3. mysql_fetch_object urldecode decodes any %## encoding in the given string. These interview questions for fresher in PHP will be broken down only according to the most common interview questions on PHP for freshers that interviewers will ask in their PHP personal interviews. PEAR means "PHP Extension and Application Repository". This function is case-sensitive. … 13) How is the comparison of objects done in PHP? 25) What does the PHP error 'Parse error in PHP - unexpected T_variable at line x' means? from files on a system it can create, open, read, write, and close them. It can handle forms, i.e. Memcache is a memory store space, and you can run memcache on one or more servers. What are your weaknesses? Aspirants can get the programming languages such as .Net, Java, SQL and C. Below mentioned questions are frequently asked by the company. Prepare for Jobs using our PHP FAQs list. What are your salary expectations? A session is a logical object enabling us to preserve temporary data across multiple PHP pages. You can propagate a session id via cookies or URL parameters. PHP 4 is the current generation of PHP, which uses the Zend engine under the hood. 12) What is the meaning of a final class and a final method? Well, many candidates for preparing for technical interviews for various corporate organizations. 90) what is the difference between for and foreach? 86) What does the expression Exception::__toString means? 91) Is it possible to submit a form with a dedicated button? How can we display the output directly to the browser? The function mysqli_num_rows() returns the number of rows in a result set. $a and $b: TRUE if both $a and $b are TRUE. We can change the maximum size of files to be uploaded by changing upload_max_filesize in php.ini. Answer : Yes we can use include() more than one time in any page though it is not a very good practice. $name is variable where as $$name is reference variable like $name=sonia and $$name=singh so $sonia value is singh. What’s the difference between include and require? 93) Is it possible to protect special characters in a query string? $a & $b: Bits that are set in both $a and $b are set. 1.How can we repair a MySQL table? You can also configure your client to speak to a particular set of instances. stristr() is identical to strstr() except that it is case insensitive. The platform was intended for the development of web application by using MVC architectural pattern. By default, cookies are temporary and are erased if we close the browser. It is composed of three expressions: a condition, and two operands describing what instruction should be performed when the specified condition is true or false as follows: 57) What is the function func_num_args() used for? Answer : Rasmus Lerdorf is known as the father of PHP.PHP/FI 2.0 is an early and no longer supported version of PHP. Answer : The main idea behind this is to use Java script submit() function in order to submit the form without explicitly clicking any submit button. 3.Question : In how many ways we can retrieve the data in the result set of What are your Positive Points and Negative Points? echo $found[1]; 5.Question : How can we create a database using PHP and MySQL? Which One to Choose? PHP Interview Questions updated on Apr 2021. To access the data sent via the GET method, we use $_GET array like this: 35) How can we access the data sent through the URL with the POST method? It is preferable to use crypt() which natively supports several hashing algorithms or the function hash() which supports more variants than crypt() rather than using the common hashing algorithms such as md5, sha1 or sha256 because they are conceived to be fast. Rasmus Lerdorf is known as the father of PHP. Answer : unlink() deletes the given file from the file system. Read about Php My Sql Interview Questions, for mysql optimization , and php technical interview questions To be able to pass a variable by reference, we use an ampersand in front of it, as follows $var1 = &$var2. The scripting engine that powers … 1) What is Laravel? What does static variable mean? What is the difference between $name and $$name? This feature is possible using the global keyword. :: is used to access static methods that do not require object initialization. Tips: With a cloud desktop from CloudDesktopOnline.com, software … To be able to display the … MySQL using PHP? 82) What is the differences between $a != $b and $a !== $b? mysql_pconnect() ensure a persistent connection to the database, it means that the connection does not close when the PHP script ends. For more details Call Us 9000866292.mail us at : [email protected]. $_FILES is an associative array composed of items sent to the current script via the HTTP POST method. This command will repair the table specified. We can test if two objects are referring to the same instance of the same class by the use of the identity operator '==='. It is possible to generate HTML through PHP scripts, and it is possible to pass pieces of information from HTML to PHP. What types of loops exist in php? This will be the first question and also seems to be … PHP Technical Interview Questions and Answers for Fresher and Experienced Question: How to convert string to array in php? 1. mysql_fetch_row. Dear Readers, Welcome to PHP interview questions with answers and explanation. __sleep returns the array of all the variables that need to be saved, while __wakeup retrieves them. PHP 5 presents many additional OOP (Object Oriented Programming) features. 48) How is it possible to return a value from a function? Exception::__toString gives the String representation of the exception. Core PHP Interview Questions and Answers for Freshers and 1 to 5 Years Experienced Candidates with detailed answers and … 73) What is the difference between $_FILES['userfile']['name'] and $_FILES['userfile']['tmp_name']? 101) Explain whether it is possible to share a single instance of a Memcache between multiple PHP projects? Give A New Rise to your Interview Preparation by Practicing the capgemini technical interview questions and answers asked at Freshers and Experience Level. In this tutorial, you will learn- PHP Data Types PHP Variable Use of variables Variable type... Training Summary PHP is the most popular scripting language on the web. 55) When is a conditional statement ended with endif? $_FILES['userfile']['name'] represents the original name of the file on the client machine. What is the name of scripting engine in PHP? The use of the set_time_limit(int seconds) enables us to extend the execution time of a PHP script. Candidates can get technical interview questions from this section. It is encoded the same way that the posted data from a WWW form The unlink() function is dedicated for file system handling. Answer : URLencode returns a string in which all non-alphanumeric characters except -_. have been replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs. If QUICK is given, … PHP 5 uses Zend engine 2 which, among other things, offers many additional OOPs features. 23) How can we display information of a variable and readable by a human with PHP? However, we can exchange variables since PHP can generate Javascript code to be executed by the browser and it is possible to pass specific variables back to PHP via the URL. If you are looking for Infosys interview questions 2021 fresher’s, then you are at the right place.Many websites claim that they are providing genuine questions but maybe that’s not true. If it is TRUE, the loop continues, and the statements inside for are executed. 2) What do the initials of PHP stand for? Mobile Applications Development Platforms. The mysqli_fetch_object() function collects the first single matching record where mysqli_fetch_array() collects all matching records from the table in an array. PHP is a web language based on scripts that allow developers to dynamically create generated web pages. The string function strstr(string allString, string occ) returns part of allString from the first occurrence of occ to the end of allString. 8.Question : What is the difference between the functions unlink and unset? unset() makes a variable undefined. $string="cakephp and zend"; $array =explode('and',$string); print_r($array); 2. 30) How be the result set of Mysql handled in PHP? 95) What is the difference between characters \034 and \x34? 85) what is the difference between Exception::getMessage and Exception:: getLine? 74) How can we get the error when there is a problem to upload a file? No, a parent constructor have to be called explicitly as follows: 62) What's the difference between __sleep and __wakeup? Top PHP Interview Questions … 1. Who is the father of PHP ? A. How to find the length of a … 100) Is it possible to use COM component in PHP? 15) What type of operation is needed when passing values through a form or an URL? RSS feed vs Email Subscription. Capgemini Technical Interview Questions For Freshers. 75) How can we change the maximum size of the files to be uploaded? Here out more php interview questions here. Answer. $_ENV is an associative array of variables sent to the current PHP script via the environment method. Well, you don’t need to worry we will provide you real questions here because we get these questions from our own students who went for an interview. 69) What is the difference between session_unregister() and session_unset()? $_FILES['userfile']['tmp_name'] represents the temporary filename of the file stored on the server. PHP and Javascript cannot directly interact since PHP is a server side language and Javascript is a client-side language. The first expression is executed once at the beginning. The function eregi_replace() is identical to the function ereg_replace() except that it ignores case distinction when matching alphabetic characters. GD library is needed to execute image functions. Just use the PHP command line interface (CLI) and specify the file name of the script to be executed as follows: 7) How to run the interactive PHP shell from the command line interface? The most common and used way is to get data into a format supported by Excel. '), which returns the concatenation of its right and left arguments. To be able to verify whether a PHP variable is an instantiated object of a certain class we use instanceof. Get capgemini SQL interview questions and answers Capgemini for Freshers. In each iteration, expr2 is evaluated. 3. 24) How is it possible to set an infinite execution time for PHP script? When the original if was followed by: and then the code block without braces. 56) How is the ternary conditional operator used in PHP? In this tutorial I have given the common 35 Important interview questions with answers for php freshers who will going for a job interview as junior PHP developer/ programmer. The default limit is 30 seconds. We are giving some of the technical interview questions for freshers. Top PHP Interview Questions & Answers for Freshers & beginners - Prepare with PHP FAQs related ot PHP Array, Strings, Functions, Forms etc for Jobs A function returns a value using the instruction 'return $value;'. How to declare an array in php? Answer: Firstly if I talk about … It simply deletes the file given as entry. The define() directive lets us defining a constant as follows: 52) How can you pass a variable by reference? Freshers PHP Technical Interview Questions & Answers Posted on 16 th May 2013 12:49 PM Advanced PHP online/classroom course, hyderabad: We Global I-Matrix Software Solutions are one of the best Web designing and development company in Hyderabad, India. 6) How do you execute a PHP script from the command line? Basic Level PHP Interview Questions Q1. 38) How do I check if a given variable is empty? If the function require() cannot access the file then it ends with a fatal error. We have to enable the Magic quotes entry in the configuration file of PHP. If we want to check whether a variable has a value or not, it is possible to use the empty() function. 67) What is the meaning of a Persistent Cookie? PHP Array Interview Questions & Answers . 1.Question : Who is the father of PHP and explain the changes in PHP versions? 33) What is the difference between mysqli_fetch_object() and mysqli_fetch_array()? If your search is for trust worthy developer then choose the best from our company. We use the operator '==' to test is two objects are instanced from the same class and have same attributes and equal values. How to set a page as a home page in a php based site ? Exception::getMessage lets us getting the Exception message and Exception::getLine lets us getting the line in which the exception occurred. Answer # delimiter is the marker for the end of each command you send to the mysql command line client. delimiter is not only related to triggers, but defining triggers and stored procedures is one strong use case as you wish them to contain … Yes, it is possible by setting the cookie with a past expiration time. How to redirect a page in php? Tell me a bit about yourself? The target is pointed by a label followed by a colon, and the instruction is specified as a goto statement followed by the desired target label. When PHP changes you can update Memcached by. $a === $b TRUE if $a and $b have the same key/value pairs in the same order and of the same types. 58) If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2? PHP supports only single inheritance; it means that a class can be extended from only one single class using the keyword 'extended'. 12.Question : How can we get the browser properties using PHP? A persistent cookie is permanently stored in a cookie file on the browser's computer. "13" and 12 can be compared in PHP since it casts everything to the integer type. The unset() function is dedicated for variable management. Without PHP Facebook,... What is PHP mail? 102) Explain how you can update Memcached when you make changes to PHP? It extends PHP and provides a higher level of programming for web developers. PHP Technical Interview Questions Question # 81) What does a delimiter do in mysql? 21) What is the main difference between require() and require_once()? require(), and require_once() perform the same task except that the second function checks if the PHP script is already included or not before executing it. 11) Is multiple inheritance supported in PHP? The type of technical interview questions may include MCQ, fill in the blanks, true or false, etc. It will make a variable undefined. It is possible to use the dedicated function, ctype_alnum to check whether it is an alphanumeric value or not. $_SERVER is an array including information created by the web server such as paths, headers, and script locations. The use of the function session_start() lets us activating a session. The first is the concatenation operator ('. Most candidates take it for granted that they will know … Top PHP Array Interview Questions & Answers list. What is the cement sand & aggregate ratios for various grades of concrete mix? To be able to display the output directly to the browser, we have to use the special tags . 20) How failures in execution are handled with include() and require() functions? 89) What is the difference between the functions strstr() and stristr()? The functions are getimagesize() for size, imagesx() for width and imagesy() for height. 3) Which programming language does PHP resemble? Sessions automatically end when the PHP script finishes executing but can be manually ended using the session_write_close(). The boolean function isset determines if a variable is set and is not NULL. Final class means that this class cannot be extended and a final method cannot be overridden. The two most common ways to start and finish a PHP script are: 9) How can we display the output directly to the browser? 92) What is the difference between ereg_replace() and eregi_replace()? Following are frequently asked Laravel and PHP related interview questions for freshers as well as experienced candidates to get the right job. gather data from files, save data to a file, through email you can send data, return data to the user. As a fresher, it is very rare that you will face … There are 3 main uses for the static. 43) How can we automatically escape incoming data? Most of the interview questions are given in an MCQ format, but you can also include problem-solving or coding-scenario based questions to narrow down your search. unset() makes a variable undefined. The strip_tags() function enables us to clean a string from the HTML tags. 27) What is the function file_get_contents() useful for? PHP Interview Questions And Answers For Freshers. Yes, it's possible to integrate (Distributed) Component Object Model components ((D)COM) in PHP scripts which is provided as a framework. Q4I Largest collection of Technical Interview Questions for Freshers Technical Interview questions and answers Archives.Technical interview questions for experienced Covering Major Technical Interview Questions asked from various Topics like C, C++, JAVA, DS, OS, CCNA, php, python etc, and read best Answers … 324232. A static variable is defined within a function only the first time, and its value can be modified during function calls as follows: 47) How can we define a variable accessible in functions of a PHP script? 99) What is the default session time in PHP? Yes, we use the urlencode() function to be able to protect special characters. The function get_magic_quotes_gpc() tells us whether the magic quotes is switched on or no. The default session time in php is until the closing of the browser. To access the data sent this way, you use the $_POST array.

Kettering Fairmont Soccer Schedule, Iceland Carolina Reaper Chicken Chunks Review, Lovelock Correctional Center Coronavirus, County Line Elementary School Lunch Menu, Tall Tv Desk Mount, Pepperoni And Bell Pepper Pizza, County Line Elementary School Lunch Menu, Valeria Lukyanova Now,



Leave a Reply