What is difference between require_once(), require(), include()?

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Log In or Sign Up in a few seconds to view this answer.

Differences between GET and POST methods?

We can send 1024 bytes using GET method but POST method can transfer large amount of data and POST is the secure method than GET method.

What is the meaning of a final class and a final method?

final was introduced in PHP5. Final class means that this class cannot be extended and a final method cannot be overridden.

What type of operation is needed when passing values through a form or a URL?

If we would like to pass values througn a form or an URL then we need to encode and to decode them using htmlspecialchars() and urlencode().

How can we access the data sent through the URL with the GET method?

In order to access the data sent via the GET method, we you use $_GET array like this:www.url.com?var=value$variable = $_GET[“var”]; this will now contain ‘value’

Which function gives us the number of affected entries by a query?

mysql_affected_rows() return the number of entries affected by an SQL query.

How can we access the data sent through the URL with the GET method?

In order to access the data sent via the GET method, we you use $_GET array like this:www.url.com?var=value$variable = $_GET[“var”]; this will now contain ‘value’

How can we access the data sent through the URL with the POST method?

To access the data sent this way, you use the $_POST array. Imagine you have a form field called var on the form, when the user clicks submit to the post form, you can then access the value like this: 

$_POST["var"];

How can we check the value of a given variable is a number?

It is possible to use the dedicated function, is_numeric() to check whether it is a number or not.

What's the difference between include and require?

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.