PHP kodu optimize

0 Cevap

"what is the shortest code for this?" ile ilgili çeşitli sorular:

  1. {} Olmadan

    if($match->name == "Marry") {
        $match = true;
    }
    
  2. {} Olmadan

    if($match->name == "Marry") {
        $match = true;
    } else {
        $match = false;
    }
    
  3. Sormak nasıl if $match = true?

  4. Sormak nasıl if array() has any value?

  5. Nasıl if $variable has numeric value (0-9) sormak için?

  6. Sormak nasıl if $variable's first symbol isn't a letter or number?

  7. Sormak nasıl if $match = false?

0 Cevap