Split string into an array with the explode() function in PHP

aaroncousins311 August 4, 2020 27 No Comments

Have you ever needed to split a string into an array so that you can loop over it? Maybe its data from a text file or a CSV that y

Read Text File Line By Line With PHP

aaroncousins311 August 4, 2020 40 No Comments

In the following article, we will take a different route to an earlier technique of reading text files with PHP. Rather, we will r

Using Eloquent whereBetween With Dates In Laravel

aaroncousins311 August 4, 2020 15 No Comments

Eloquent has many criteria extendable methods that help with day to day queries. In this tutorial, we will look at the usual ‘be

How To Read A Plain Text As A String Using PHP

aaroncousins311 August 4, 2020 18 No Comments

Data is commonly stored in text files, whether it be manually entered or exports from a variety of software packages. Data within

Exploring Resource Routes In Laravel

aaroncousins311 August 4, 2020 10 No Comments

Laravel comes with lots of time-saving gems out-of-the-box, resourceful routes is one of them. In this article, we will explore th

How To Get Current User ID In Laravel

aaroncousins311 August 4, 2020 10 No Comments

The answer: using the Auth facade. When Laravel is configured with authentication, the Auth facade becomes useful for actions like

101 Ways You Can Learn to Code for Free Online

aaroncousins311 August 4, 2020 9 No Comments

This article has been a mission to collate the most educational, informative, and really high-value for free code learning content

How To Convert XML To Array with PHP

aaroncousins311 August 4, 2020 8 No Comments

XML is quite daunting when viewing it for the first time, it’s the heavy tree-like structure can be quite confusing. Sometimes i

Download HTML Page As PDF In PHP

aaroncousins311 August 4, 2020 18 No Comments

Downloading a PDF file in PHP can be achieved with third-party packages such as html2pdf but first it must be converted from HTML

Convert HTML To PDF In PHP

aaroncousins311 August 4, 2020 13 No Comments

In this tutorial-based article, we will learn how to convert HTML with CSS styling into a PDF file. Whilst PHP currently doesn’t