Bileşik koşullara karşı iç içe

0 Cevap php

Hangi bu 2 örneklerinden birini daha gerçekleştirmek istiyorsunuz:

Örnek 1:

if($condition_1)
{
 if($condition_2)
 {
  // do something
 }
}

Örnek 2:

if($condition_1 and $condition_2)
{
 // do something
}

0 Cevap