sigil88
3/20/2017 - 10:09 AM

PHP check for word contained in string - needs to check with !== false e.g.halo leisure 7 day pass corporate

PHP check for word contained in string - needs to check with !== false e.g.halo leisure 7 day pass corporate


	// updated 20-03-2017 - request for all Bridgend submissions to go to a different email address 
	$bridgend = 'Bridgend';
	$checkBridgend = stripos($item[':localCentre'], $bridgend);

	if( $checkBridgend !== false ) :
		$admin = 'jennifer@email.com';
	endif;
	// end update