Return to Snippet

Revision: 4164
at October 29, 2007 16:12 by JuliaKM


Initial Code
	if (is_array($types)) {
   		$wheresql = '(';
   		$where = array();
      	foreach ($types as $t) {
       		$where[] = "n.type LIKE '$t'";
   		}
   		$wheresql .= join(" OR ", $where);
      	$wheresql .= ')';
	} else {
   		$wheresql = "n.type LIKE '$types'";
	}

Initial URL

                                

Initial Description

                                

Initial Title
Check if string

Initial Tags
php, textmate, array

Initial Language
PHP