array of array to one unique array
<?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:
- cache laravel
- change maximum execution time php
- add day for date php
- check the length of the string in php
- Class 'App\Http\Controllers\Validator' not found in lumen
- buddy group hide notice join
- file_get_contents() [function.file-get-contents]: SSL operation failed with code 1. OpenSSL Error messages
- connt string php
- date n in php
- echo in json format php
- console.log not working php
- JavaScript get element that is right clicked
- create database seeder in laravel
- console log retireve the value send to php
- error showing code in php
- empty laravel cache
- client_ip() function php
- acf woocommerce variations
- admin and user login in php mysql
- base64 in php
- file in array
- Message could not be sent.Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
- array key exists check in key value
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108872 bytes) in phar://C: /ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/RuleSet.php on line 84