I don't want to repeat writing $value in if statement. Is there any way to write once and add conditions like below?
Thanks
if ($value==1 || $value== 2 || $value== 3) {
echo "I don't want this way";
}
if ($value==1 || 2 || 3) {
echo "I want something like this";
}