Search
 
SCRIPT & CODE EXAMPLE
 

PHP

get the matched value from 2 array in php

$a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow");
$a2=array("e"=>"red","f"=>"black","g"=>"purple");
$a3=array("a"=>"red1","b"=>"red","h"=>"yellow");

$result=array_intersect($a1,$a2,$a3);

// Output
// Array ( [a] => red )
Comment

PREVIOUS NEXT
Code Example
Php :: In QueryRecorder.php line 22: Argument 2 passed to FacadeIgnitionQueryRecorderQueryRecorder::__construct() must be of the type bool, null given, 
Php :: Create progress bar with Laravel 
Php :: mssql php 
Php :: php remove everything before colon 
Php :: Route pattern cannot reference variable name more than once. laravel 
Php :: blade check if variable exists 
Php :: php receive request 
Php :: laravel sync with attributes 
Php :: woocommerce order get product weight 
Php :: php number formatter 
Php :: php class instance 
Php :: guzzle download file 
Php :: php sum array values by key 
Php :: laravel log error 
Php :: can i back up mysql database from php code? 
Php :: Symmetric encryption in PHP 
Php :: wp add_action 
Php :: checkout 
Php :: php variable 
Php :: php check string 
Php :: wordpress run php code in page 
Php :: Undefined property: IlluminateDatabaseQueryBuilder::$name 
Php :: artisan new view 
Php :: create laravel migration 
Php :: php regex named groups 
Php :: how to run php on windows 
Php :: What is the purpose of an abstract? 
Php :: php isset 
Php :: php remove directory only if empty 
Php :: oop in php 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =