Category: PHP / MySQL
In this tutorial, you will learn how to add a watermark on all over the base image. We gonna use PHP’s built-in functions to watermark…
Leave a CommentIn this tutorial, You will learn how to use the CodeIgniter image library to watermark images with text or overlaying a watermark image on top…
Leave a CommentNamed arguments allow you to pass input data into a function/method based on their argument name instead of the argument order. This is a useful…
Leave a CommentYou can use PHP’s built-in function called str_contains to check if the given word exists in a string or not. If it finds the word…
Leave a CommentIt checks if the given substring contains a given string. If the substring mentioned will be present in the string then it will return True…
1 CommentComparisons between strings and numbers using == and other non-strict comparison operators currently work by casting the string to a number and subsequently performing a comparison on…
Leave a CommentYou filtered data with whereHas() and selected the same records via with(). You no longer need to call both methods. Since Laravel 9.16 you can…
Leave a CommentThe new match is similar to the switch and has the following features:
Leave a CommentIn this tutorial, you will learn how to copy files from one folder to another folder in your Laravel application. You can use File or…
Leave a CommentIn this tutorial, you will learn how to get the file name from the path in PHP with examples. You will need to use any…
Leave a CommentIn this tutorial, you will learn how to upload files in your Laravel 9 application. It’s going to be a simple and easy-to-understand step-by-step guide.…
Leave a CommentYou can easily check if a directory exists or not using Laravel’s Storage class method, exists(). And there is a makeDirectory() method in Storage class,…
Leave a CommentYou can easily get the only path from the given full path(Path with filename) using PHP’s built-in functions like dirname() and pathinfo(). Let’s assume your…
Leave a CommentRemoving duplicates from the flatten array is simple and we have a built-in function for it. The array_unique function removes duplicates from the one-dimensional array. we gonna use array_unique function along with array_map, serialize and unserialize to remove duplicates from the multidimensional PHP array. array_map — Applies the callback to the elements of the given array serialized — Generates a storable representation of a value unserialize — Creates a PHP value from a stored representation
Leave a Comment