array uniuq in 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 ) let chars = ['A', 'B', 'A', 'C', 'B'];
let uniqueChars = [...new Set(chars)];
console.log(uniqueChars);
Also in PHP:
- create seeds laravel
- combine two query value in laravel 8
- error messaging php
- Get the visitors ip adress php
- Write a PHP script that generates a 6 digit password from the given string without using random function?
- #1071 - Specified key was too long; max key length is 767 bytes voyger laravel
- check typeof variable php
- data format in php
- How to Delete Multiple Records using Checkbox in Laravel
- exit try php
- creat quik laravel app
- check if string has something in it php
- data php format
- date format H:i:s php
- create project in laravel
- create a new larave blank l project
- php timestamp to date
- console .log in php
- date and hour php
- code to log errors to web console
- create random string in php
- blood groups laravel seeder
- 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
- adding spasifc date to date('Y-m-d H:i:s') php