“==” checks only for equality in value whereas “===” is a stricter equality test and returns false if either the value or the type of the two variables are different.
Monthly Archives: June 2015
Javascript Detect Operating System
In order to detect the operating system on the client machine, the navigator.appVersion string (property) should be used.
Javascript NULL
The NULL value is used to represent no value or no object. It implies no object or null string, no valid boolean value, no number and no array object.
Javascript Delete Operator
The functionality of delete operator is used to delete all variables and objects in a program but it cannot delete variables declared with VAR keyword.
Javascript Popup Boxes
Below given are the popup boxes supported by Javascript
- Alert
- Confirm and
- Prompt
Javascript Negative Infinity
Negative Infinity is a number in JavaScript which can be derived by dividing negative number by zero.
What does the expression Exception::__toString means?
Exception::__toString gives the String representation of the exception.
How is it possible to set an infinite execution time for PHP script?
The set_time_limit(0) added at the beginning of a script sets to infinite the time of execution to not have the PHP error ‘maximum execution time exceeded’.It is also possible to specify this in the php.ini file.
What is the use of the function ‘imagetypes()’?
imagetypes() gives the image format and types supported by the current version of GD-PHP.
How can PHP and Javascript interact?
PHP and Javascript cannot directly interacts since PHP is a server side language and Javascript is a client side language. However we can exchange variables since PHP is able to generate Javascript code to be executed by the browser and it is possible to pass specific variables back to PHP via the URL.