PHP Classes

File: tests/is_ipv6.php

Recommend this page to a friend!
  Classes of Ali YILMAZ   Mind Framework   tests/is_ipv6.php   Download  
File: tests/is_ipv6.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: 397 bytes
 

Contents

Class file image Download
<?php

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

$Mind = new Mind();


echo
'<br>';
if(
$Mind->is_ipv6('2001:0db8:85a3:08d3:1319:8a2e:0370:7334')){
    echo
'This is an ipv6 address.';
} else {
    echo
'This is not an ipv6 address.';
}

echo
'<br>';
if(
$Mind->is_ipv6('2001:0db8:85a3:08d3:1319:8a2e:0370:7334dsdsd')){
    echo
'This is an ipv6 address.';
} else {
    echo
'This is not an ipv6 address.';
}