what is json?
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.JSON is an easier to use alternative to XML.
What is the difference between mysql_fetch_object and mysql_fetch_array?
AnswerMysql_fetch_object returns the result from the database as objects while mysql_fetch_array returns result as an array. This will allow access to the data by the field names. E.g. using mysql_fetch_object field can be accessed as $result->name and using mysql_fetch_array field can be accessed as $result->[name].
What is type hinting in PHP?
Type hinting means the function specifies what type of parameters must be and if it is not of the correct type an error will occur.PHP 5 introduces type hinting and the functions are able to force the parameters to be objects, interfaces ,array .
Difference between include and require?
It’s how they handle failures. If the file is not found by require(), it will cause a fatal error and halt the execution of the script. If the file is not found by include(), a warning will be issued, but execution will continue.
What is the difference between characters 23 and x23?
The first one is octal 23, the second is hex 23.
Use of nl2br()?
nl2br inserts HTML line breaks(<br/>) before all new lines in a string .
Use of nl2br()?
nl2br inserts HTML line breaks(<br/>) before all new lines in a string .
0 comments:
Post a Comment
Thanks for your valuable feedback