What is the use of the function ‘imagetypes()’?
imagetypes() gives the image format and types supported by the current version of GD-PHP.
imagetypes() gives the image format and types supported by the current version of GD-PHP.
GD library is needed to execute image functions.
PHP and Javascript cannot directly interact since PHP is a server side language and Javascript is a client-side language. However, we can exchange variables since PHP can generate Javascript code…
If we would like to pass values through a form or an URL, then we need to encode and to decode them using htmlspecialchars() and urlencode().
It is possible to generate HTML through PHP scripts, and it is possible to pass pieces of information from HTML to PHP.
We use the operator ‘==’ to test is two objects are instanced from the same class and have same attributes and equal values. We can test if two objects are…
‘final’ is introduced in PHP5. Final class means that this class cannot be extended and a final method cannot be overridden.
PHP supports only single inheritance; it means that a class can be extended from only one single class using the keyword ‘extended’.
PHP 5 presents many additional OOP (Object Oriented Programming) features.
To be able to display the output directly to the browser, we have to use the special tags <?= and ?>