Created
November 10, 2012 13:52
-
-
Save boo1ean/4051147 to your computer and use it in GitHub Desktop.
WTF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//User role checking for contacts | |
$contacts = 0; | |
$type = explode(',',$data['sp_user_type']); | |
$contactsArray = array('1','2','3','4','5','6','7','8','9','10'); | |
foreach($contactsArray as $contactsArr){ | |
if(in_array($contactsArr,$type)){ | |
$contacts = 1 ; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment