Alok Prasad has Published 52 Articles

Explain STATIC AND INSTANCE method in PHP.

Alok Prasad

Alok Prasad

Updated on 31-Dec-2019 08:18:24

522 Views

In PHP, instance methods are the preferable practice over static methods. In any case, it isn't to say that static methods are not helpful, they have a distinct and unique purpose. Here we discuss a comparison between static and instance methods in PHP.Here Note that instance method is always connected ... Read More

Comparison of floating point values in PHP.

Alok Prasad

Alok Prasad

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

573 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

What is header() function in PHP?

Alok Prasad

Alok Prasad

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

3K+ Views

The header() function is an predefined PHP native function.With header() HTTP functions we can control data sent to the client or browser by the Web server before some other output has been sent.The header function sets the headers for an HTTP Response given by the server. We can do all ... Read More

Comparison of dates in PHP

Alok Prasad

Alok Prasad

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

5K+ 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

Explain array_merge() function in PHP.

Alok Prasad

Alok Prasad

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

157 Views

In this article, we will learn about array_merge(), a predefined PHP array function. The array_merge() is utilized to combine at least two more arrays into a single array. This function is utilized to combine the components of at least two arrays together into a single array.This function works to merge ... 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

Advertisements