نقل قول نوشته اصلی توسط Woshka نمایش پست ها
کد PHP:
<?php
if ($a $b)
  echo 
"a is bigger than b";
?>

Often you'd want to have more than one statement to be executed conditionally. Of course, there's no need to wrap each statement with an if clause. Instead, you can group several statements into a statement group. For example, this code would display a is bigger than b if $a is bigger than $b, and would then assign the value of $a into $b:
<?php
if ($a $b) {
  echo 
"a is bigger than b";
  
$b $a;
}
?>
ایز این کد
کد PHP:
<?php
if (2==2){
header('Location: /a.php');
}
?>

و یا این کد می توانید استفاده کنید
کد PHP:
<?php
if (2==2)
header('Location: /a.php');

?>
با عرض پوزش خودتون یک بار دیگه بخونید
موفق باشید