Alok Prasad has Published 38 Articles

Comparison of floating point values in PHP.

Alok Prasad

Alok Prasad

Updated on 31-Dec-2019 08:15:59

645 Views

In PHP, testing floating point values for equality is problematic, because PHP is failing when checking if one floating point number is equal to another. Despite the fact floating point numbers seems to have the same value do not need to actually be identical. So in this article will demonstrate ... Read More

Explain include(),require(),include_once() and require_once() functions in PHP.

Alok Prasad

Alok Prasad

Updated on 30-Jul-2019 22:30:26

3K+ Views

In this article, we will learn about useful and important functions in PHP for file inclusion. All these functions require, require_once, include and include_once are utilized to include the files in the php page but there is a slight distinction among them in terms of functionality.Let's discuss these functions below ... Read More

Comparison of dates in PHP

Alok Prasad

Alok Prasad

Updated on 30-Jul-2019 22:30:26

6K+ Views

Matching two dates in PHP is quite smooth when both the dates are in a similar format but php failed to analyze when the two dates are in an unrelated format. In this article, we will discuss different cases of date comparison in PHP. We will figure out how to ... Read More

Concatenation of two strings in PHP

Alok Prasad

Alok Prasad

Updated on 30-Jul-2019 22:30:26

3K+ Views

PHP offers different kinds of operators having distinctive functionalities. Operators enable us to perform arithmetic activities, string concatenation, compare values and to perform boolean operations, more...In this article, we will learn string operators given by PHP. Let's first learn the types of string operators in php. There are two string ... Read More

Convert object to an array in PHP.

Alok Prasad

Alok Prasad

Updated on 30-Jul-2019 22:30:26

8K+ Views

In a PHP application, we are working with data in various formats such as string, array, objects or more...In a real-time application, we may need to read a php object result in the form of an associative array to get the desired output.So we will discuss here how to transform ... Read More

Explain Polymorphism in PHP.

Alok Prasad

Alok Prasad

Updated on 30-Jul-2019 22:30:26

10K+ Views

To begin with, Polymorphism is gotten from the Greek words Poly (which means many) and morphism (which meaning forms).Polymorphism portrays an example in object-oriented programming where methods in various classes that do similar things should have a similar name. Polymorphism is essentially an OOP pattern that enables numerous classes with ... Read More

Explain final class and final method in PHP.

Alok Prasad

Alok Prasad

Updated on 30-Jul-2019 22:30:26

1K+ Views

The final keyword is introduced by PHP5 related to the object-oriented programming concept.But before we move on to the final, we need to ensure that we have a good understanding of the inheritance concept. In inheritance, we can inherit a class from another class. Also, we can override a function ... Read More

Why to check both isset() and !empty() function in PHP ?

Alok Prasad

Alok Prasad

Updated on 30-Jul-2019 22:30:26

341 Views

Php offers some magical predefined function to handle the variables in real-time applications.In this article we will study about isset() and !empty() function and implementation both of these functions with few examples.isset():The isset() function is a predefined function in PHP which checks whether a variable is declared in the application ... Read More

Advertisements