1⟩ Do you know who is the father of PHP?
Rasmus Lerdorf is known as the father of PHP.
“Internee PHP Developer based Frequently Asked Questions in various Internee PHP Developer job interviews by interviewer. These professional questions are here to ensures that you offer a perfect answers posed to you. So get preparation for your new job hunting”
Rasmus Lerdorf is known as the father of PHP.
mysql_create_db();
The output is displayed directly to the browser.
<?php
$second = date(“s”);
?>
Just use the PHP CLI program with the option -a as follows:
php -a
Yes, it is possible by setting the cookie with a past expiration time.
for is expressed as follows:
for (expr1; expr2; expr3)
statement
The first expression is executed once at the beginning. In each iteration, expr2 is evaluated. If it is TRUE, the loop continues and the statements inside for are executed. If it evaluates to FALSE, the execution of the loop ends. expr3 is tested at the end of each iteration.
However, foreach provides an easy way to iterate over arrays and it is only used with arrays and objects.
!= means inequality (TRUE if $a is not equal to $b) and !== means non-identity (TRUE if $a is not identical to $b).
$_SERVER is an array including information created by the web server such as paths, headers, and script locations.
$name is variable where as $$name is reference variable like $name=sonia and $$name=singh so $sonia value is singh.
The header() function sends a raw HTTP header to a client.We can use herder() function for redirection of pages. It is important to notice that header() must be called before any actual output is seen.
move_uploaded_file( string filename, string destination)
Constants in PHP are defined using define() directive, like define("MYCONSTANT", 100);
PHP means PHP: Hypertext Preprocessor.
To be able to display the output directly to the browser, we have to use the special tags <?= and ?>.
Yes, we use the urlencode() function to be able to protect special characters.
Exception::__toString gives the String representation of the exception.
$_COOKIE is an associative array of variables sent to the current PHP script using the HTTP Cookies.
$_FILES is an associative array composed of items sent to the current script via the HTTP POST method.
The boolean function isset determines if a variable is set and is not NULL.