I have two arrays: $story and $languages
Now I want to know how many times elements or values in $languages appear in $story array. This means how many times "php", "javascript", "mysql" of $languages array appeared in $story?
How can I do this in php? Can anyone help? Here are my arrays...
$story = array();
$story[] = 'As a developer, I want to refactor the PHP & javascript so that it has less duplication';
$story[] = ' As a developer, I want to configure Jenkins so that we have continuous integration and I love mysql';
$story[] = ' As a tester, I want the test cases defined so I can test the system using php language and phpunit framework';
$languages = array(
'php', 'javascript', 'mysql'
);