PHP Interview Questions & Answers part 1

0
311
Q: – Can I create arrays for values entered into elements other than select and check box fields?

 

Yes, in fact any element name ending with empty square brackets in a form resolves to an array element when the form is submitted. You can use this fact to group values submitted from multiple fields of any type into an array.

Q: – What PHP function did we use to create an associative array of date-related information?

geTDate()

Q: – What function is designed to allow you to set a cookie on a visitor's browser?

Visual C++ is probably the most popular favored compiler, because of it's history of quality and stablity.But in ANSI C++ is a less popular, but is a much more powerful and robust compiler. The IDE is also a lot more powerful than MSVC.

Q: – When passing a variable through the query string, which superglobal does it belong in?

$_GET

Q: – Which PHP function was used to uppercase the category title strings?

 

strtoupper()

Q: – Will the include() statement slow down my scripts?
 

 

Because an included file must be opened and parsed by the engine, it will add some overhead. The benefits of reusable code libraries often outweigh the relatively low performance overhead, however.

Q: – What PHP function did we use to create a timestamp?

mktime()

Q: – What editors should I avoid when creating PHP code?

 

Visual C++ is probably the most popular favored compiler, because of it's history of quality and stablity.But in ANSI C++ is a less popular, but is a much more powerful and robust compiler. The IDE is also a lot more powerful than MSVC.

Q: – When should I use a DBM-like database as opposed to a SQL database?
 
A DBM-like database is a good option when you want to store small amounts of relatively simple data (typically name/value pairs). If you want to store larger amounts of data or want to retrieve information based on conditions of any type, you should consider a SQL solution.

 

Submitted By:-Payal Gupta            Email-ID: – payalgupta1325@yahool.com

 

SHARE

LEAVE A REPLY