Adsense

PHP interview questions - Part 3

How will you get an size of array ?
ans:count()

Cookies - temp file in user computer.it will user information to server.

cookie function?
ans: set cookie(name, value, expire, path, domain)
cookie variable?
ans: $_cookie.
how will you destroy cookie?
 ans: giving past date in expire.

Session  -temp file in server to identify a user
-to carry user information to entire application
session variable?
ans:$_session
How to destroy session?
ans:using unset and destroy.

PHP string handling

How to search a word?
ans:strpos-if a string(word is available it will return a position of string or it will return FALSE)

Primary key
diff b/w primary and unique key?
Index,constraint

PHP oops
Constructor, create class

SQL
Joins
inner-atleast one match in both table.
left-return all rows from left even there is no match in right table.
right- return all rows from right table even there is no match in left table.

Javascript
DOM, onselect

CSS
diff b/w class and id?

1 comment:

comment here

newest questions on wordpress