Form Validation Example by PHP 8 MySQL
Hello Dev,Hello Brother, I will let you know lesson of PHP 8 MySQL Form Validation Example. you will learn PHP 8 Server Side Form Validation Tutorial Example. step by step explain how to create form validation in php 8. We will look at lesson of PHP 8 MySQL form input validation lesson. fo...
How can make an array from the values of another array's key?
If you are working on PHP or other PHP framework and you want to create array of another array value. now you can see on following lesson how can you make array form another multidimensional array key's.For lesson you have array like:
How to remove null values from array in PHP?
you have array with null value and you want to remove all null value from that array without loop. you can remove your all null value from array without loop. PHP array_filter function through you can remove all null value, you see following lesson how to remove null value :...
How to find day from specific date in PHP?
Whenever you need to det day like Monday, Tuesday etc from full date. i mean you have any specific date like "2015-10-10" and you want to get day then you can do in both way first using strtotime() and second using DateTime object.In Following lesson you can see i give you both way...
PHP: How to count files in folder?
In PHP, you are work on php and you want to need display count number of files in specific folder then you do, glob() through you count number of file are there in specified folder. now in following lesson you can see "/var/www/test" in this folder, count how many files are there in that folder....
How to get minimum key value of array in PHP?
Sometimes, you need to get minimum key value of your array but you try to get with loop and any function etc, but in bellow lesson you can see we can get smallest key value from our php array by using min() and array_keys(). So, let's try to use in your code this way:Example...
How to add prefix in each key of PHP Array?
Whenever you require to add one character or more to each and every key of array then most of the people would like prefer add key using for loop or foreach loop. But we can do this without using any kind of loop. using array_combine(), array_keys() and array_map() through we can add prefix on ea...
How to remove empty values from array in PHP?
you have array with empty value and you want to remove all empty value from that array without loop. you can remove your all empty value from array without loop. PHP array_filter function through you can remove all empty value, you can do both way try and see following lesson how to do this :...
How to get maximum key value of array in PHP?
Sometimes, you need to get maximum key value of your array but you try to get with loop and any function etc, but in bellow lesson you can see we can get biggest key value from our php array by using max() and array_keys(). So, let's try to use in your code this way:Example:...
How to generate random alphanumeric string in PHP?
In this lesson i am going to show you how to generate randomly alphanumeric string OR number in PHP. when you need you generate random alphanumeric string for your unique field then you can easily create using substr(), md5(), rand(), uniqid(), mt_rand(), time() and str_shuffle() php function you...
How to remove specific value from php array?
When i was working on my code PHP project, at that time i need to remove specific items value from my array. i did google search and solve that but i would like to share in my site how to remove value from array. so, let's see how to use:Example:
How to count number of files in directory PHP?
If you are working on code php and you require to count number of files, images, zip file, rar files, etc in the given folder path, then you can count using glob() and count() of php. So, let's see this bellow lesson and learn how it done.
How to convert Object into Array in PHP?
Whenever you need to convert object to array in your php project then you can do that using (array). It is a pretty simple lesson to convert php object into array that way you can use array. So, let's see the following lesson.Example:
How to convert array values to lowercase in PHP?
Whenever you require to create all array value in lowercase then you can create that without using loop. you have to just use array_map(), array_map function take two argument one for php function "strtolower" and second one for array. May be we need to do this when we are working on big projects...
How to convert array key to lowercase in PHP?
Whenever you require to create all array key in lowercase then you can create that without using loop. you have to just use array_change_key_case(), array_change_key_case function take two argument one for array and second one for php function "CASE_LOWER". May be we need to do this when we are w...
How to set value as key in PHP array?
Sometimes, we work on big php or other framework projects and we need to change array value as array key at that time you can learn from this post. In this lesson you can do that without foreach loop. For lesson if you have all country array but that array have key like 1,2,3,4... etc and value i...
How to check if string is URL or not in PHP?
Sometimes, we require to check the given argument or string is URL or not, as specially i did need to check image column is url or not like i give you lesson how to do this. If you also need to do this then you can use filter_var().Example:
How to check file is exists or not in PHP?
If you need to check file is exixt or not on folder. Normally we require to check image is exist or not, video is exists or not etc. In this lesson i use file_exists() for determine file is available or not in given path. So if you also need check then follow bellow lesson:Example:...
How to get file size in php ?
If you require to get file size in php then you can do it easily using filesize() of PHP. Normally we require to get and check on before image uploading. So if you want to get image size then bellow lesson can help you. It will return size on byte.Example:
How to check word exist in string or not in PHP?
I want to share this posts because when i was working in my laravel application i need to find word from string, I mean check string contains word or not but i try to do, at last i found two way we can check easily. First one using preg_match and other one strpos() of php predefine. if you have q...
How to remove white space from string in PHP?
Sometimes we require to remove white space from given string. So at that time you can delete spaces from string using str_replace() of core php. str_replace() will help to replace whitespace that way we can remove. you can do it from bellow lesson.Example:
How to get filename without extension in PHP?
If you need to get just filename from url withour file extension then you can get that using basename() php function. In bellow lesson i give you how to get image name without extension. first we need to get extension of given filename url and then basename() through we can remove that extension...
Paypal payment gateway integration in php source code example
In this post i am going to give you lesson of how to integrate payment Paypal gateway in php with demo. It is very simple to use paypal payment method in your native php website because you don't need to use any api for paypal payment gateway integration. Paypal provide very simple way to do this...
How to get filename from path in PHP?
Sometimes, we may require to get only filename or image name from full path or url in your PHP project or any framwwork project at that time you can get file name using php pre-define function basename.If you ever use this function then you can see as bellow lesson how it's works. I...
How to solve - you dont have permission to upload files in KCFinder ?
I was working on my project and implementing KCEditor and CKFinder (the free one) with image upload, but when i tried to upload image i found error like "you don't have permissions to upload files".So, i though maybe issue for folder permission because i used ubuntu OS. i gave whole...
How to add CKEditor with image upload using KCFinder in PHP Example Code?
We can implement ckeditor with image uploading in PHP simply. if you want to use ckeditor in your PHP project and you also want to add file uploading as well then you can do easily to follow bellow step.In this lesson i use ckeditor with KCFinder for image uploading. KCFinder throug...
How to get folder path from file path in PHP?
Sometimes, we require to get directory path from Image path or file url in our PHP website or any PHP framework website at that time we can get folder name using php pre-define function dirname.If you ever use this function then you can see as bellow lesson how it's works. I have on...
How to remove duplicate values from Array in PHP?
It is pretty simple to delete duplicate values from PHP Array. But sometimes we confuse for how can we remove. But PHP provide pre-define function array_unique that can help to remove duplicate values from Array.array_unique() through we can get only unique value from array. So, you...
PHP - How to remove duplicate values from multidimensional array?
Sometimes, we require to remove duplicates value from multidimensional array in our PHP framework php like laravel, codeigniter, zend etc. Hello Brother, In this lesson i going to give you lesson of get unique values from multidimensional array that way duplicates will be delete.In...
PHP - Capture screenshot of website from URL example
Hello Brother, i am going to give you lesson of how to grab screen shot from given URL using PHP curl. There are several website provide API for capture website screenshot image using their API Secret and Key.In this lesson i am using screenshotmachine.com website API. This website...
PHP - Getting Started PHPUnit test with simple example
PHPUnit is a one type of unit testing framework for PHP language. In todays PHPUnit is very popular for testing. Most of site owner want to implement PHPUnit test because that way we can simply test using command. Without testing our website will never be good to publish. But if you don't know ab...
How to make read more link from string in PHP?
We may require to make read more function in core php project. read more link require to create when you have long text or string and limited space to display that text at that time we need to make read more link after some words or character.Hello Brother, in this lesson you will l...
PHP - Infinite Scroll Pagination using JQuery Ajax Example
Hello Brother, we will learn how to implement simple infinite scroll using jquery, ajax, php and mysql lesson. After complete this lesson you will get load more data on scroll of your page.Generally, sometime we require to make load more latest feed or post etc when you scroll like...
PHP - How to create zip file and download using ZipArchive ?
Hello Brother, i am going to share with you how to create zip file using ZipArchive then give for download. So here i will give you very simple lesson to do this.We may require to create zip archive file using php code. We need to add some photos, docs etc on that zip file then give...
How to upload and resize image in PHP ?
After a long time i am going to share something with you friends. But Anyway Today i will show you how to generate thumbnail image in PHP. Here i will make very simple code to upload image and resize that image too.As we know well images are very important to display on our website....
PHP Webcam Capture Image and Save from Camera
How to get specific key value from multidimensional array in php
In this post, i will learn you how to get specific key value array from multidimensional array in php. we will get specific key value array using array_column() and array_map().we almost require to get specific key and value in array when work with php multidimensional array. like i...
- React JS
- Typeahead JS
- Facebook API
- Amazon API
- Twitter API
- Instagram API
- Google API
- Node JS
- Mailchimp API
- Linkedin API
- Dropbox API
- Mailgun API
- Chart JS
- Parsley JS
- Rakuten Marketing API
- Behance API
- Google Map
- Mediafire API
- Ionic Framework
- React Native