Java, .NET, PHP, PYTHON, ANGULAR, ML, Data Science, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"

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

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?


POST Answer of Questions and ASK to Doubt

  1. 1)What is difference between echo and print?
    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?
    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?
    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?
    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?
    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
    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 a Comment

POST Answer of Questions and ASK to Doubt

Previous Post Next Post