fork download
  1. <?php
  2.  
  3. function checkLoginUser($idUser)
  4. {
  5. if ($idUser > 0) {
  6. echo 'да';
  7. } else {
  8. echo 'нет';
  9. }
  10. }
  11.  
  12. checkLoginUser(1);
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
да