About 3,090,000 results
Open links in new tab
  1. Write a program in PHP to check whether the person is adult Orr not

    Nov 14, 2019 · The above code output that "A person is an adult person". But when the value of personage variable will be changed to 18, then it will prints that "The person is not an adult person". Code Explanation:

  2. Create a webpage in PHP to find a person is adult or not

    Feb 9, 2021 · In this Tutorial, we are going to learn how we can Create a webpage in PHP to find a person is adult or not.

  3. php - Validate if age is over 18 years old - Stack Overflow

    PHP code: function validateDateOfBirth($birthDay) { // convert user input date to string and +18 years; // compare user input date with current date; if (time() < strtotime('+18 years', strtotime($birthDay))) { return 'Not 18'; } return "user is older than 18 years old"; }

  4. Skill Oriented Practicals (PHP) | Pankajkumar Blog

    SOP 1: Write a PHP program to check if a person is eligible to vote or not. The program should include the following. · Minimum age required for vote is 18. · Use Php functions. · Use Decision making statement. SOP 2: Write a PHP function to count the total number of vowels (a,e,i,o,u) from the string. Accept a string by using HTML form.

  5. Exp-12 Write a PHP program to check if a person is eligible to …

    Exp-12 Write a PHP program to check if a person is eligible to vote or not. The program should include the following. Minimum age required for vote is 18. Use PHP functions. Use Decision making statement.

  6. Write a PHP program to check if a person is eligible to vote

    Write a PHP program to check if a person is eligible to vote using control structure. (Criteria: Minimum age required to vote is 18) Sure! Here's a PHP program that checks if a person is eligible to vote based on their age: <?php $age = 20; // …

  7. Write a program in php to check whether a person is adult or not

    <?php $age=26; if($age>18) echo "Person is an adult"; else echo "Person is not an adult"; ?> Please add the HTML5 elements on your own. This is just the program.

  8. Ages – PHP Task (all the values are inclusive) – PHP

    Write a program that determines whether based on the given age a person is: baby, child, teenager, adult, elder. The bounders are: All the values are inclusive. Examples: <?php echo 'Please input the age: ' . PHP_EOL; switch (true) { case $age < 2: echo 'baby'; break; case $age >= 3 && $age <= 13: echo 'child'; break;

  9. PHP Program to Check Voting Eligibility Based on Age

    In this tutorial, you will learn how to write a simple PHP program to check if a person is eligible to vote based on their age. The eligibility rule is straightforward: a person must be 18 years or older to vote. We will create a web form where the user can enter their age.

  10. PHP Decision Making - Programs, Exercise & Assignements

    Write a PHP program to check if a person is eligible to vote or not. Minimum age required for vote is 18. You can use PHP Functions. You can use Decision Making Statements. Click to View Solution/Program. You Are Eligible For Vote. Write a PHP program to check whether a number is positive, negative or zero. You can use if else conditions.

Refresh