You are on page 1of 2

1) What |s an array?

Ans)An array is a way of holding multiple closely-related values, There are two
types of arrays: Indexed array and Associative array. Their difference is in the way
the key is specified. Let's look at both of them:
% |ffrence between pr|nt and echo ?
Ans% uslng pr|nt we can able Lo prlnL slngle sLaLemenL buL uslng echo we can able Lo prlnL
mulLlple sLaLemenLs
3) |ffrence between |mp|ode and exp|ode?
Ans) 054/0sp||l a slr|rg ard relurr ar array ..
Imp|ode 4|r array e|ererls W|lr a slr|rg
4) What |s sess|on?
Ans) Session is a variable is used to store information about, or change
settings for a user
) now to start sess|on?
Ans) sess|on_start()
6) now to destroy sess|on?
Ans) sess|on_destory()
7) d|fference between |nc|ude and requ|re ?
Ans) the d|fference |s how they hand|e fa||ue include() produces a Warning while
require() results in a Fatal rror.
8) What are the [o|ns?
Ans) NNER JON / JON,CROSS JON,OUTER JON,LEFT OUTER JON / LEFT JON
RGHT OUTER JON / RGHT JON,STRAGHT JON,NATURAL JON.
What is Ieft join?
Ans %he LEF% JOIN keyword returns all rows from the left table (table_name1),
even if there are no matches in the right table (table_name2).

10 What right join?
Ans The RIGHT JOIN keyword returns all the rows from the right table (table_name2),
even if there are no matches in the left table (table_name1).
11 what is the difference between primary key and unique key

Ans Primary key doesnot allow null value but unique key
allows
null value. We can declare only one primary key in a
table
but a table can have multiple unique key(column assign).


12) What |s an a[ax?
Ans) AJAX = Asynchronous JavaScript and XML.
Ajax is used for getting response from the server with out page refresh. totally it
take 4 steps .
Step 1: creating ajax object and sending request to the server.
Step2: it indicates user request reached to the server.
Step3: it indicates getting request from the server.
Step4: it indicates that response reached to the user.

You might also like