$matching = array_intersect($array1, $array2);
print_r($matching);
More Related Contents:
- Need help identifying a php error
- Strange behavior Of foreach
- How to prevent duplicate usernames when people register?
- How to remove “index.php” in codeigniter’s path
- Remove all special characters from a string [duplicate]
- PDO valid characters for placeholders
- Get content between two strings PHP
- Laravel 5 PDOException Could Not Find Driver
- Binding multiple values in pdo
- PHP Fatal error: Call to undefined function json_decode()
- Import CSV file directly into MySQL
- How to loop through an associative array and get the key? [duplicate]
- Call to a member function on a non-object
- PHP – Session destroy after closing browser
- Remove non-ascii characters from string
- PHP Upload, extract and progressbar
- Methods to remove specific characters from string?
- Convert tiff to jpg in php?
- How can I use “Dependency Injection” in simple php functions, and should I bother?
- How to get a query error from prepare() in PDO PHP?
- phpMyAdmin Error: The mbstring extension is missing. Please check your PHP configuration
- PHP Date Time Current Time Add Minutes
- What is a clever way to count number of unique items in array (PHP)? [duplicate]
- Fatal error: Call to a member function query() on null
- PHP Timezone List
- Which is faster? Constants, Variables or Variable Arrays
- How do I send a HTTP/2 POST request in PHP
- Php & Sql Injection – UTF8 POC
- Sort a multidimensional array descending by subarray count and preserve first level keys
- How to display “12 minutes ago” etc in a PHP webpage? [closed]