Jun 6, 2008

I said more on PHP didn't I .....

Q. What is a query string?
A. A query string is attached to the end of the URL in a link. A query string can consists of as many name/value pairs as developer wants to supply.

Q. What is HTML form element?
A. The user fills out the various text boxes and clicks a submit button when ready, the information that is supplied is then bundled up in one of the two ways and sent to the web server. The web server can then pull out this information and supply it to the PHP engine. PHP manipulates the information and sends it back as a part of HTTP response to the browser. Values submitted in form are always string.

Q. Can we use more than one submit button?
A. Yes, by changing their name.

Q. How can we submit form without the submit button?
A. We can use simple java script code linked to an event trigger of any form field. documetn.form.submit()

Q. In how many ways can we retrieve the data from result set of mysql?
A. As individual objects or as set of arrays.

Q. How many types of tags are available in PHP?
A. Four
standard tags, short tags, script tags, ASP tags.

Q. How does PHP limits the use of whitespaces?
A. We cannot have any whitespaces between We cannot break apart keywords.
We cannot break apart variable names and function names.

Q. How many types of data types are there?
A. Scalar and composite.

Q. What is NULL ?
A. NULL indicates that the variable has no value. A variable is considered to be NULL if it has been assigned the value NULL, or if it has not yet been assigned a value at all although in latte case PHP may output a warning if we attempt to use the variable.

Q. What is resource data type?
A. The resource data type is used to indicate external resources that not used natively by PHP but that have special meaning in the context of a special operation. We cannot convert any value to resource however a resource can be converted to a numeric or string data type in which case PHP will return the numeric ID of the resource.

Q. What is variables variable or $$?
A. It is a variable whose name is contained in another variable.

Q. How do we determine if variable exists?
A. A call to isset() will return ture if a variable exits and has a value other than NULL.

1 comment:

Sheik said...

Dude :

yeh lo kuch ek ques meri taraf se bhee .. time toe sochna ...

1) Give me an example where i++ is not equal to i=i+1. (both are single simple statements)

2) If goto is so discured in seq prog .. why it is still there in almost all lang .. Can u give me an example.. where the task always prefers ..use of GOTO.

:) cheers !!!