Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $name = 'Nionx'; //String
- $age = 17; // integer
- $married = false; // boolean
- //Check the name is Nion or not
- if($name == 'Nion'){
- echo "You are Nion<br />\n";
- //Check Nion is adult or not
- if($age >=18){ // chech age greater than or equal 18
- echo "You are adult<br />\n";
- if($married == true){
- echo "You are married<br />\n";
- }else{
- echo "You are not married<br />\n";
- }
- }else{
- echo "You are not adult.<br />\n";
- }
- }else{
- echo "You are not Nion.<br />\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement