PHP - ifadeler eğer içinde atama değerleri

0 Cevap

I read the other day that assigning values within if statements isn't such a great idea. To be honest i actually use this quite a lot e.g.

if(isset($_POST) && $post = $_POST) {
  print_r($post)
}

Bu optimal değildir Herhangi bir fikir neden?

0 Cevap