التخطي إلى المحتوى الرئيسي

CORE PHP Interview Question


PHP Interview Question If you read it then sure you can crack interview ,this session is also available on my YOU-TUBE CHANNEL or go www.shivatutorials.com
1)What is difference between echo and print?
2)What is  difference between ' ' and " " in PHP?
3)What is Super Global Variable in PHP?
4)What is Constant declaration in PHP?
5)What is Difference between Index Array ,Associative Array and Mixed array in PHP?
6)Write the name of five datatype function?
7)Write the name of five String function?
8)What is implode and explode function in PHP?
9)What is Curl and PEAR in PHP?
10)What json_encode and json_decode() in PHP?
11)What is implode and explode() in PHP?
12)How we can upload multiple files in PHP ?
13)Write the query to update and insert record into database ?
14)Write the query to check email id already exist with complete PHP Code?
15)What is difference between mysql and mysqli?
16)What is mysqli_fecth_row and mysqli_fetch_array()?
17)What is Ajax explain  AJAX with JQUERY AND JS?
18)How we send mail in PHP ,what is mail(),what is phpmailer ?
19)How we redirect from one page to another in PHP?
20) What is ob_start() and ob_end_flush() in PHP?
21) Program to check palindrome in String,Check Prime Number,Calculate Factorial?
22)  Program of Pattern which is described in nested for loop session topic of this blog in PHP tutorial?
23)  Program of Array which is described in Array Session of PHP in this article ?
24)  What is pagination in PHP ,with limit operator of MySQL and without limit?
25)  What is JSON ,How you can display JSON Data in PHP?
26)  how we can execute five insert query asynchronous in PHP?
27)  How we can protect from SQL Injection in PHP?
28)  What is session and cookies ,difference between session_unset and session_destroy
29)  what is relative path and absolute path in PHP
30) Difference between require and include in PHP?

تعليقات

  1. 1)What is difference between echo and print?
    ANSWER->
    echo and print are more or less the same. They are both used to output data to the screen. The differences are small: echo has no return value while print has a return value of 1 so it can be used in expressions. echo can take multiple parameters (although such usage is rare) while print can take one argument.
    ----------------------------------------------------------------------------------------------
    2)What is difference between ' ' and " " in PHP?
    ANSWER->
    when you use double quotes PHP has to parse to check if there are any variables within the string. A single-quoted string does not have variables within it interpreted. A double-quoted string does. ... The single-quoted strings are faster at runtime because they do not need to be parsed.
    --------------------------------------------------------------------------------------------
    3)What is Super Global Variable in PHP?
    ANSWER->
    PHP super global variable is used to access global variables from anywhere in the PHP script. PHP Super global variables is accessible inside the same page that defines it, as well as outside the page. while local variable's scope is within the page that defines it.
    -----------------------------------------------------------------------------------------
    4)What is Constant declaration in PHP?
    ANSWER->
    PHP Constants. A constant is an identifier (name) for a simple value. The value cannot be changed during the script. A valid constant name starts with a letter or underscore (no $ sign before the constant name). Note: Unlike variables, constants are automatically global across the entire script.
    -------------------------------------------------------------------------------------------
    5)What is Difference between Index Array ,Associative Array and Mixed array in PHP?
    ANSWER->
    Indexed arrays are used when you identify things by their position. Associative arrays have strings as keys and behave more like two-column tables. ... PHP internally stores all arrays as associative arrays; the only difference between associative and indexed arrays is what the keys happen to be.
    ------------------------------------------------------------------------------------------
    6)Write the name of five datatype function
    ANSWER->
    PHP Data Types
    (1)String->A string is a sequence of characters, like "Hello world!".
    A string can be any text inside quotes. You can use single or double quotes:
    (2)Integer->An integer data type is a non-decimal number between -2,147,483,648 and 2,147,483,647.
    (3)Float (floating point numbers - also called double)->A float (floating point number) is a number with a decimal point or a number in exponential form.
    (4)Boolean->A Boolean represents two possible states: TRUE or FALSE.
    (5)Array->An array stores multiple values in one single variable..


    ردحذف

إرسال تعليق

POST Answer of Questions and ASK to Doubt

المشاركات الشائعة من هذه المدونة

Uncontrolled form input in React-JS

  Uncontrolled form input in React-JS? If we want to take input from users without any separate event handling then we can uncontrolled the data binding technique. The uncontrolled input is similar to the traditional HTML form inputs. The DOM itself handles the form data. Here, the HTML elements maintain their own state that will be updated when the input value changes. To write an uncontrolled component, you need to use a ref to get form values from the DOM. In other words, there is no need to write an event handler for every state update. You can use a ref to access the input field value of the form from the DOM. Example of Uncontrolled Form Input:- import React from "react" ; export class Info extends React . Component {     constructor ( props )     {         super ( props );         this . fun = this . fun . bind ( this ); //event method binding         this . input = React . createRef ();...

JSP Page design using Internal CSS

  JSP is used to design the user interface of an application, CSS is used to provide set of properties. Jsp provide proper page template to create user interface of dynamic web application. We can write CSS using three different ways 1)  inline CSS:-   we will write CSS tag under HTML elements <div style="width:200px; height:100px; background-color:green;"></div> 2)  Internal CSS:-  we will write CSS under <style> block. <style type="text/css"> #abc { width:200px;  height:100px;  background-color:green; } </style> <div id="abc"></div> 3) External CSS:-  we will write CSS to create a separate file and link it into HTML Web pages. create a separate file and named it style.css #abc { width:200px;  height:100px;  background-color:green; } go into Jsp page and link style.css <link href="style.css"  type="text/css" rel="stylesheet"   /> <div id="abc"> </div> Exam...

JDBC using JSP and Servlet

JDBC means Java Database Connectivity ,It is intermediates from Application to database. JDBC has different type of divers and provides to communicate from database server. JDBC contain four different type of approach to communicate with Database Type 1:- JDBC-ODBC Driver Type2:- JDBC Vendor specific Type3 :- JDBC Network Specific Type4:- JDBC Client-Server based Driver  or JAVA thin driver:- Mostly we prefer Type 4 type of Driver to communicate with database server. Step for JDBC:- 1  Create Database using MYSQL ,ORACLE ,MS-SQL or any other database 2   Create Table using database server 3   Create Form according to database table 4  Submit Form and get form data into servlet 5  write JDBC Code:-     5.1)   import package    import java.sql.*     5.2)  Add JDBC Driver according to database ide tools     5.3)  call driver in program         ...