Home »
Php Interview Questions
,
php-interview-questions-answers
» How to check whether two floating-point numbers are equal?
How to check whether two floating-point numbers are equal?
PMA00:25
Categories: Php Interview Questions, php-interview-questions-answers
Related Posts:
magic methods? Magic methods are the members functions that is available to all the instance of class Magic methods always starts with “__”. Eg. __construct All magic methods needs to be declared as public To use magic method they sh… Read More
What Is a Function? You can think of a function as an input/output machine. This machine takes the raw materials you feed it (input) and works with them to produce a product (output). A function accepts values, processes them, and then performs… Read More
$_GET , $_POST,$_COOKIE?? $_GET contains any variables provided to a script through the GET method. $_POST contains any variables provided to a script through the POST method. $_COOKIE contains any variables provided to a script through a… Read More
How we know browser properties? echo $_SERVER['HTTP_USER_AGENT']; $browser = get_browser(); foreach ($browser as $name => $value) { echo “$name $value \n”; } get_browser returns the capabilities of the user's browser. … Read More
calculate the sum of values in an array ? array_sum method can calculate sum of values in an array … Read More
THE DIFFERENT TYPES OF ERRORS IN PHP? 1. Notices: These are trivial, non-critical errors that PHP encounters while executing a script – for example, accessing a variable that has not yet been defined 2. Warnings: These are more serious errors – for example, a… Read More
What is the use of PEAR in php? PEAR is known as PHP Extension and Application Repository. It provides structured library to the PHP users and also gives provision for package maintenance. … Read More
Associative Arrays? You can use string values as keys. For example, you might create an arraylike this: $myStuff = array();$myStuff[“name”] = “andy”;$myStuff[“email”] = “andy@fsdsd.ca”;Print $myStuff[“name”]; Associative arrays are different t… Read More
What is CURL? CURL stands for Client URL Library. CURL allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telne… Read More
What is the default session time in php and how can I change it? The default session time in php is until closing of browser … Read More
sorting an array? arsort() sort() natsort() … Read More
count the elements of an array? sizeof($array) – This function is an alias of count() count($urarray) – This function returns the number of elements in an array. … Read More
What Is a Persistent Cookie? A persistent cookie is a cookie which is stored in a cookie file permanently on the browser's computer. By default, cookies are created as temporary cookies which stored only in the browser's memory. When the browser is c… Read More
How can we get second of the current time using date function? $second = date("s"); … Read More
What are the MySQL database files stored in system ? Data is stored in name.myd Table structure is stored in name.frm Index is stored in name.myi … Read More