<?php $string = 'like'; $whitelist = ['like', 'hate']; if (in_array($string, $whitelist)) { echo "valid: $string"; } else { echo "invalid: $string"; }
You have javascript disabled. You will not be able to edit any code.