Ejemplo n.º 1
0
Archivo: ACL.php Proyecto: h3rb/page
 public static function has($haystack, $needle, $delim = ',')
 {
     return tagged($haystack, $needle, $delim);
 }
Ejemplo n.º 2
0
 function filtered_tags($tags, $supported, $delim = ',')
 {
     $out = array();
     $words = words($tags, $delim);
     foreach ($words as $w) {
         if (tagged($supported, $w)) {
             $out[] = $w;
         }
     }
     return implode($delim, $out);
 }