$number = 2;

if ($number == 1) {
  echo 'یک';
} elseif ($number == 2) {
  echo 'دو';
}
دو