array should not be empty php
if (empty($array)) {
// list is empty.
}$arr = array();
if(!empty($arr)){
echo "not empty";
}
else
{
echo "empty";
}
Also in PHP:
- display all php erros
- Create Laravel Project 7
- Backend fatal error: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted in laravel 8
- buscar un substring dentro de un string php
- SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767
- datetime format
- declare variable in view for loop laravel
- confirm password validation in laravel
- check in string is part oof other string php
- date to timestamp php
- find array duplicates in two arrays php
- create a laravel 7 project
- check if string contains substring php
- Your Composer dependencies require a PHP version ">= 7.2.5". You are running 7.2.0. in
- check data type in php
- cahgne date format in php
- convert string to date php
- day in php time
- echo foreach
- base64 php encode decode
- composer require laravel/ui for laravel 6
- filteredduplicata php
- 12:30 am time format validation in laravel
- artisan clean cache