array in array key values unique
<?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 ) <?php
$input = array("a" => "green", "red", "b" => "green", "blue", "red");
$result = array_unique($input);
print_r($result);
?>
Array
(
[a] => green
[0] => red
[1] => blue
)
Also in PHP:
- date format ph
- cahgne date format in php
- blade if
- Allowed memory size of 134217728 bytes exhausted (tried to allocate 4271488 bytes)", "exception":
- array php remove duplicates
- change readble date format in php
- PHP Stream Functions
- @ development: `mix` npm ERR! Exit status 1 npm ERR!
- eloquent unique combination
- debian install apache php
- base encode64 php
- count string length in php
- array key value php
- contains in string php
- add variable days to datsphp
- dir name php
- echo all error
- $conn or $con php
- check if $this-> key exist php
- error reporting ini set dusplay errors
- db format date function php
- file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL
- Woocommerce Display Custom Field value on the Email [Custom Field Display 3]
- date formate with pc time in php