Skip to content

Merge 2 arrays and keep ONLY duplicates [closed]

So, i have 2 arrays which look like this: $a = array(1,3,5); $b = array(2,3,4,5); The expected result should look like this: array(3,5); Is there a quick and easy way to achieve my expected result? :…

hide the content of the page if the user is not logged in

I am trying to hide the contents of the page if the user is not logged in, everything is now hidden except the nav. It doesn’t apply the css code that I used. as you can see in the code I have added .dipsplay-custom: none; if the user session is not set so in every parent I added display-custom the