create array and remove duplicates php
<?php
$fruits_list = array('Orange', 'Apple', ' Banana', 'Cherry', ' Banana');
$result = array_unique($fruits_list);
print_r($result);
?>
Output:
Array ( [0] => Orange [1] => Apple [2] => Banana [3] => Cherry )
Also in PHP:
- convert string to all caps php
- downloading php latest version for ubuntu 20.04 using terminal
- database seeder laravel 8.x
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:
- check if text is in string php
- display errors in production
- date convert format in php
- base64 dencode GET variables in PHP
- check if string container string phph
- clear cache config laravel
- Installation request for phpoffice/phpspreadsheet 1.4.0 -> satisfiable by phpoffice/phpspreadsheet[1.4.0]
- Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in
- date fonction php
- date now function in php
- can we find like directorries in php
- Class 'App\Widgets\BaseDimmer' not found \vendor\tcg\voyager\resources\views\dimmers.blade.php)
- execute script php command line
- change key with the value php
- date du joure n php
- can you use just 1 try catch in a php function
- exception class list for all server error in laravel
- How do I check if a string contains a specific word php
- file_get_contents(http://cnh.local/dsc/uploads/1359e1e4c0a10294d9894146beb3e1e9.crt): failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error in file /opt/gitco/cnh_laravel/app/Repositories/CallRepository.php
- detecting right click on windows