Conditions in React with JSX

JSX is a statically-typed, object-oriented programming language designed to run on modern web browsers. It is an XML-like syntax extension. It allows us to create and write HTML elements in…

Read more »

Filter() Function with JavaScript Array

In this trick, you will see how you can use a filter() function with a javascript array and get a value from the array based on the filters. Filtering an…

Read more »

PHP Redirect to Another Page

Do you want to redirect your page to another page in PHP? Then I will show you how you can make redirection from current page to another page in php….

Read more »

JavaScript Convert to Boolean in Using !! Operator

You can convert the value to boolean in javascript using the !! (double exclamation mark) operator. So let’s see how you can convert the value to boolean in javascript? Convert…

Read more »

WooCommerce Single Page Visual Hook Guide

This is WooCommerce Single Product Page visual hook guide. You can easily and quickly find the exact hook on the actual position. With these hooks, you can customize your woocommerce…

Read more »

Add Custom Columns to Laravel Models Using Accessors

Do you know what is Accessors and how to use them to add custom columns to laravel models? Let’s see in this tricks. What is Accessors in Laravel? The Accessors…

Read more »

Delete a Line in Text File Using Python

Let’s see how you can delete a line in a text file using python code. It is very simple just loop through each line and excludes the matched line with…

Read more »

Create CSV from PHP Array

We will use fputcsv() function to create a CSV from PHP array. Look at the code below. Create CSV from PHP Array $data = array( array(45, 32, 64, 78, 47),…

Read more »

Get Current Page URL in PHP

Do you want to get the current page URL in PHP then check this code below? In this trick, we will use the $_SERVER super global variable and get the…

Read more »

How to Take Chrome Full Page Screenshot Without Extension?

In this trick, I’ll show you how you can take a full-page screenshot in chrome without any extension. We will use the in-built option method of chrome browser. OK! As…

Read more »