Add first letter of titles to array, then compare arrays
The arguments for in_array() are the wrong way round. Looking at the documentation you can see that the first argument is the value you want to check (the ‘needle’) and the second argument is the array you want to check for it in (the ‘haystack’). So this means it’s always evaluating as false, meaning that … Read more