PHP Classes

File: tests/is_age.php

Recommend this page to a friend!
  Classes of Ali YILMAZ   Mind Framework   tests/is_age.php   Download  
File: tests/is_age.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Mind Framework
Framework that implements several design patterns
Author: By
Last change:
Date: 1 year ago
Size: 592 bytes
 

Contents

Class file image Download
<?php

require_once '../src/Mind.php';

$Mind = new Mind();

echo
'<br>';
if(
$Mind->is_age('1987-03-17', 35)){
    echo
'Age is appropriate.';
} else {
    echo
'Age is not appropriate.';
}
echo
'<br>';
if(
$Mind->is_age('1987-03-17', 32)){
    echo
'Age is appropriate.';
} else {
    echo
'Age is not appropriate.';
}

echo
'<br>';
if(
$Mind->is_age('1987-03-17', 35, 'min')){
    echo
'Age is appropriate.';
} else {
    echo
'Age is not appropriate.';
}
echo
'<br>';
if(
$Mind->is_age('1987-03-17', 32, 'max')){
    echo
'Age is appropriate.';
} else {
    echo
'Age is not appropriate.';
}