Posts for php

PHP Functions: Remove Last Character From String In PHP

In this tutorial, you’ll learn four methods to remove the last character from a string in PHP. You can use any one of the following methods as per the requirements. I’m assuming that you have basic knowledge of PHP language and have it running on your computer. Contents substr_replace substr rtrim mb_substr Conclusion substr_replace function The […]

August 13, 2020 in Snippets

PHP Add to Array | Push Value to Array PHP – array_push()

In this tutorial we’ll learn how to add one or more elements onto the end of array. Contents Requirements Definition Syntax Description Usage Conclusion Requirements PHP running on your computer Basic knowledge of PHP Text Editor Definition array_push() is a PHP function that is used to add one or more elements onto the end of an […]

August 7, 2020 in Snippets
Afolayan
Afolayan wrote

How To Switch to Ajax-based Authentication in Laravel 6

In this tutorial, you will learn how to Switch to Ajax-based Authentication in Laravel 6. One of the exciting features of Laravel 6 the ability to immediately generate a fully usable authentication system by installing the laravel UI package and running the auth command. I.e composer require laravel/ui laravel ui vue –auth As exciting as […]

November 20, 2019 in Laravel & Tutorials