Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* // Arithmetic Operator(+,-,*,/,%)
- $father = 60;
- $son =24;
- $total = $father +$son;
- echo $total;
- */
- /* // Assignment Operator (+=,-=.*=,/=,%=)
- $past_age = 30;
- $past_age += 5;
- echo $past_age; */
- /* /*
- // Logical Operator (||=or,&&=and,!=not)
- $username ='rasel';
- $pass ='rasel4422';
- if ($username =='rasel' && $pass =='rasel4422'){
- echo 'welcome';
- }
- else{
- echo 'username or pass worng';
- } */
- // Comparison Operator (==equal,!=not equal,<>not equal,>greather than,>=greather than or equal to,<less than,<=less than or equal to)
- /* $rasel = 18;
- $rana = 20;
- if( $rasel <= $rana){
- echo 'true';
- }
- else {
- echo 'false';
- } */
- /* $girls = 18;
- if($girls <= 50){
- echo'biyer boyos hoyeche';
- }
- else {
- echo 'biyer boyos hoini';
- } */
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement