Advertisement
Guest User

Rasel

a guest
Nov 24th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <?php
  2.  
  3. /* // Arithmetic Operator(+,-,*,/,%)
  4.  
  5. $father = 60;
  6. $son =24;
  7.  
  8. $total = $father +$son;
  9. echo $total;
  10.  
  11. */
  12.  
  13.  
  14.  
  15. /* // Assignment Operator (+=,-=.*=,/=,%=)
  16.  
  17. $past_age = 30;
  18. $past_age += 5;
  19.  
  20. echo $past_age; */
  21.  
  22.  
  23.  
  24.  
  25.  
  26. /* /*
  27. // Logical Operator (||=or,&&=and,!=not)
  28.  
  29. $username ='rasel';
  30. $pass ='rasel4422';
  31.  
  32. if ($username =='rasel' && $pass =='rasel4422'){
  33.  
  34. echo 'welcome';
  35.  
  36. }
  37.  
  38. else{
  39. echo 'username or pass worng';
  40.  
  41. } */
  42.  
  43.  
  44.  
  45. // Comparison Operator (==equal,!=not equal,<>not equal,>greather than,>=greather than or equal to,<less than,<=less than or equal to)
  46.  
  47.  
  48.  
  49. /* $rasel = 18;
  50. $rana = 20;
  51.  
  52. if( $rasel <= $rana){
  53.  
  54. echo 'true';
  55.  
  56. }
  57.  
  58. else {
  59.  
  60. echo 'false';
  61.  
  62. } */
  63.  
  64.  
  65.  
  66.  
  67. /* $girls = 18;
  68.  
  69. if($girls <= 50){
  70.  
  71. echo'biyer boyos hoyeche';
  72.  
  73. }
  74.  
  75. else {
  76.  
  77. echo 'biyer boyos hoini';
  78.  
  79. } */
  80.  
  81.  
  82.  
  83. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement