>>>>> "DF" == Daniel Friesen <li...@nadir-seen-fire.com> writes:
DF> Using in_array and array_diff on an exploded array should work fine.
OK, but that would take several times as many lines than my current:

foreach(array_keys($links['namespaces']) as $ns){
 if(strpos($ns,'talk')!==false){
  if('new'==$links['namespaces'][$ns]['class']){
   unset($links['namespaces'][$ns]);}}}

and force me to hardwire in more specific knowledge of your current structure, 
no?

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to