I'm curious if there's a shorter way of writing this.. i've come across situations like this a few times where i don't know what best practice is or if there's a quicker way..
Basically it's just checking to see what page it is.. perhaps it would be faster to do with a switch statement. I'm sure a well-polished PHP developer can tell mePHP Code:if($page=="home" || $page=="about" || $page=="contact" || $page=="course" || $page=="enroll" || $page=="login") {
Thanks!


Thanks!
Reply With Quote

Bookmarks