Alok Prasad has Published 52 Articles

What is implode() function in PHP?

Alok Prasad

Alok Prasad

Updated on 29-Jun-2020 08:32:01

298 Views

In this article, learn how to use PHP Implode() function.The Implode() function is a predefined inbuilt PHP function. We can form a string by joining the components of an array with the help of the PHP implode function. The implode() function creates a string from components of an array utilizing ... Read More

What is explode() function in PHP?

Alok Prasad

Alok Prasad

Updated on 29-Jun-2020 08:24:47

595 Views

In this article, figure out how to utilize PHP Explode() function which is a predefined inbuilt PHP function.The explode function is utilized to "Split a string into pieces of elements to form an array".The explode function in PHP enables us to break a string into smaller content with a break. ... Read More

Compare define() vs const in PHP

Alok Prasad

Alok Prasad

Updated on 31-Dec-2019 10:10:49

4K+ Views

As we know both define() and const are used to declare a constant in PHP script.SyntaxLet's discuss the difference between these two.The basic difference between these two is that const defines constants at compile time, whereas define() defines them at run time.We can't use the const keyword to declare constant ... Read More

Comparison between "&&" and "AND" operator in PHP.

Alok Prasad

Alok Prasad

Updated on 31-Dec-2019 09:28:32

338 Views

PHP offers incredible operators to perform operations such as arithmetic, assignment, comparison and many more ...In this article, more importance will be laid on logical operators "&&" and "AND" and will study how they can be utilized based on their precedence. Logical operators "&&" and "AND" produce true-or-false as results, ... Read More

What are getters and setters methods in PHP?

Alok Prasad

Alok Prasad

Updated on 31-Dec-2019 08:57:06

13K+ Views

In this article, we learn the best way to create getter and setter strategies in PHP. Getter and setter strategies are utilized when we need to restrict the direct access to the variables by end-users. Getters and setters are methods used to define or retrieve the values of variables, normally ... Read More

Explain interface in PHP.

Alok Prasad

Alok Prasad

Updated on 31-Dec-2019 08:56:13

1K+ Views

In this article, we will figure out how to utilize the PHP interface that is one of the most significant structure patterns in PHP object-oriented programming.An Interface enables us to make programs, indicating the public methods that a class must execute, without including the complexities and procedure of how the ... Read More

What is "namespace" keyword in PHP?

Alok Prasad

Alok Prasad

Updated on 31-Dec-2019 08:53:49

293 Views

In this article, we are going to learn about namespace in PHP. In PHP when we are creating large applications or when integrating third-party applications/library then there may be chances of collision between class names, function names. So to avoid these problems PHP "Namespaces" provide a way in which to ... Read More

What is method overloading in PHP?

Alok Prasad

Alok Prasad

Updated on 31-Dec-2019 08:29:38

8K+ Views

Method Overloading is a concept of Object Oriented Programming which helps in building the composite application in an easy way. Function overloading or method overloading is a feature that permits making creating several methods with a similar name that works differently from one another in the type of the input ... Read More

Explain difference between Abstraction and Encapsulation in PHP.

Alok Prasad

Alok Prasad

Updated on 31-Dec-2019 08:20:07

942 Views

PHP5 added the object-oriented programming approach with the previous version, which is used for making code reusable in real time php application.Some of the concepts of object-oriented models are: class, object, encapsulation, polymorphism, abstract and final classes, and methods, interfaces and inheritance, etc...Here we discuss the basic differences between abstraction ... Read More

Explain Encapsulation in PHP.

Alok Prasad

Alok Prasad

Updated on 31-Dec-2019 08:19:23

7K+ Views

Object Oriented Programming is a software approach added to PHP5, which helps in building the composite application in an easy way. Some of the OOP concepts added into the PHP5 are an abstraction, interface, static method, and static class, etc...In this article, we will learn Encapsulation and it's implementation through ... Read More

Advertisements