What is indexing in MySQL?

What-is-indexing-in-MySQL

In this article, we will discuss in detail about indexing in MySQL. What is Indexing? In order to fetch data with specific column values from the database quickly, indexes are used. To easily understand what index is, we can take the example of any textbook. At the very end of the textbook, there is an … Read more

How to create a category template in WordPress?

How to create a category template in WordPress

In this post we will first learn what are categories in WordPress. Then we will learn how to create templates for categories in the frontend for WordPress. Category in WordPress Overview In simple terms, a category in WordPress is what a blog post is related to or based on. For example, if we create a … Read more

What is data type in PHP?

What-is-data-type-in-PHP

Data type and variable in PHP Data type defines what type of value a variable can store. In programming language, a variable is a value that can change. PHP is a dynamically typed language. In dynamically typed language it is not required to specify the type of a variable because the type will be set … Read more

Categories PHP

How to convert an object to an array in PHP?

convert an object to an array in PHP

Before knowing how to convert from an object to an array in php, we will know what objects and arrays are in php. Object and Array are built-in data types of PHP. Object in PHP Definition An object is an instance of a class. To create an object new keyword is used. A class is … Read more

Categories PHP

How to convert an array to a string in PHP?

How-to-convert-an-array-to-a-string-in-PHP

Before knowing how to convert from an array to a string in PHP, we will know what array and string are in PHP. String and Array are built-in data types of PHP. What is a string? A string is a collection of characters (character is equivalent to a byte). Example of a string An example … Read more

How to implement post type specific search in WordPress?

How to implement post type specific search in WordPress

Here we will discuss how we can implement a particular post type specific search functionality in WordPress. Before implementing post type specific search, we first need to know what post type is in WordPress. Post type in WordPress In WordPress, there are many different types of content. These types of content are usually defined as … Read more

How to implement search functionality in WordPress?

How to implement search functionality in WordPress

We can implement search functionality in WordPress in many ways. We will discuss these one by one. Processes to implement search functionality Process 1: Use WordPress function: We can generate a search form using the get_search_form() function in any of our theme files (for example, header.php). We can get more details about this function at … Read more

How to create disk at runtime and store file in Laravel?

How to create disk at runtime and store file in Laravel

In this article first we will know about Laravel driver and disk. Then we will know how to create disk at run time. What is driver and disk in Laravel? Laravel filesystem integration has drivers to work with local filesystems, FTP, SFTP, and Amazon S3. In Laravel filesystem the supported Drivers are: “local”, “ftp”, “sftp”, … Read more

How to write custom if statements in Laravel?

How to write custom if statements in Laravel

In this article I will create custom blade directive for blade template in Laravel. Laravel blade overview Blade is Laravel’s easy-to-use, high-performance templating tool. We can write simple PHP code inside our blade templates. In the case of blade template files, the file extension is .blade.php and they are usually located in resources/views directory. We … Read more

How to create event in Laravel?

How to create event in Laravel

In this article we will learn how to create event in Laravel with examples. Laravel event overview Laravel events have a straightforward observer pattern implementation. We can subscribe and listen to different events that happen in our application. The event class contains the information about the event. The event classes are stored in the app/Events … Read more