PDF Preview:
PDF Title : | Learning PHP, MySQL & JavaScript, 5th Edition |
---|---|
Total Page : | 829 Pages |
Author: | Robin Nixon |
PDF Size : | 17.1 MB |
Language : | English |
Source : | oreilly.com |
PDF Link : | Available |
Summary
Here on this page, we have provided the latest download link for Learning PHP, MySQL & JavaScript, 5th Edition PDF. Please feel free to download it on your computer/mobile. For further reference, you can go to oreilly.com
Learning PHP, MySQL & JavaScript, 5th Edition
The array_intersect function extracts all members common to both arrays and returns a new array containing only those people. This array is then stored in $mutual.
Now it’s possible to use the array_diff function for each of the $followers and $following arrays to keep only those people who are not mutual friends, like this:
$followers = array_diff($followers, $mutual);
$following = array_diff($following, $mutual);