Tuts+ Code - RSS Feed

Latest articles

How to Create a WooCommerce Product Table for Free

People set up an eCommerce store in the hope of selling as many of their products as possible. This requires a lot of work on your part—from choosing the right platform to promoting your store. Simply creating a store will not automatically bring in sales. You will have to actively work on optimizing your content and your purchase funnel. Fortunately,...

How to Iterate Over Object Properties in JavaScript

In this article, we'll go through the various ways to iterate over the properties of an object in JavaScript. What Is an Object in JavaScript? An object is a special data collection in a programming language such as JavaScript—it's used to represent real-world objects or to store program state or organize program data. An object could have one or...

How to Use assert() in PHP

In this article, I'll teach you about the assert() function in PHP. I will teach you what exactly it is, how it works, and the right context to use it in your code. Along the way, I'll use simple example code snippets that will help you to understand the assert concept even better. Let’s begin! What Is the assert() Function in PHP?  assert() is a...

Pop and Shift Arrays With PHP: When to Use Each One

PHP has a lot of built-in array functions to help with many common tasks. The presence of so many functions, though, can also be a bit overwhelming because sometimes you have to keep the slight differences between these functions in mind. It is also possible to use different combinations of a few functions to achieve the same thing. This means that...

Add Days to a Date With PHP DateInterval

PHP has a lot of methods and functions to help you manipulate dates in a variety of ways. In this quick tip, I will show you how to add days to a date in PHP using the DateInterval class. We will begin with an overview of DateInterval and then move on to actual addition. The DateInterval Class The DateInterval class is useful for storing a specific...

Read a CSV to an Array in PHP

In this post, I'll show you how to use PHP's built-in functions to read and print the contents of a CSV file and convert it into an array. We'll use fopen() and fgetcsv() to read the contents of a CSV file, and then we'll convert it into an array using the array_map() and str_getcsv() functions. Introduction Storing data files in comma-separated values...

The 8 Best Free Data Visualization Libraries for JavaScript in 2022

Having access to data gives people and companies a huge competitive advantage in today's world. Every company big and small likes to collect as much information about their market, customers, and products as possible. All this knowledge allows them to make informed decisions to improve their productivity and profits, among other things. However, people...

How to Capitalize the First Letter of Each Word (Titlecase) in JavaScript

In this quick article, we’ll see how you can capitalize the first letter of all words in a string in JavaScript—also known as converting the text to titlecase. JavaScript is one of the core technologies of the web. The majority of websites use it, and all modern web browsers support it without the need for plugins. In this series, we’re discussing...

How to Use Yield and Generators in PHP

I've written multiple tutorials about functions in PHP. These include an overview of basic concepts like function return values and parameters and anonymous functions in PHP. One common feature of all the functions that we defined in those two tutorials is that they had a single return value. Functions in PHP always return a single value and don't...

How to Change the Date Format in JavaScript

In this article, we’ll see how you can change the format of a date in JavaScript. We’ll go through a couple of real-world examples to demonstrate how you can convert a date from one format to another in JavaScript. JavaScript is one of the core technologies of the web. The majority of websites use it, and all modern web browsers support it without...

Discover, share and read the best on the web

Follow RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters! Get unfiltered news feeds or filter them to your liking.

Get Inoreader
Inoreader - Follow RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters!