81⟩ Explain what is the function file_get_contents() usefull for?
file_get_contents() lets reading a file and storing it in a string variable.
“Junior PHP Developer related Frequently Asked Questions in various Junior PHP Developer job interviews by interviewer. The set of questions here ensures that you offer a perfect answer posed to you. So get preparation for your new job hunting”
file_get_contents() lets reading a file and storing it in a string variable.
Version 5 is the actually used version of PHP.
It is used for sort an array by key in reverse order.
exit() function is used to stop the execution of a page
Eg : var $arr = array('apple', 'grape', 'lemon');
eg : echo $_COOKIE["user"];
This function is used to determine if a variable is set and is not NULL
session_id() function returns the session id for the current session.
GD library is needed to be able execute image functions.
The function mysql_num_rows() returns the number of rows in a result set.
A function returns a value using the instruction ‘return $value;’.
The use of the function session_start() lets us activating a session.
$_ENV is an associative array of variables sent to the current PHP script via the environment method.
Exception::__toString gives the String representation of the exception.
The use of the set_time_limit(int seconds) enables us to extend the execution time of a php script. The default limit is 30 seconds.
$a and $b: TRUE if both $a and $b are TRUE.
$a & $b: Bits that are set in both $a and $b are set.
$_FILES is an associative array composed of items sent to the current script via the HTTP POST method.
In PHP, objects passed by value.
If we want to check whether a variable has a value or not, it is possible to use the empty() function.
PHP 5 presents many additional OOP (Object Oriented Programming) features.