PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Afif Ahmad Hidayat   Check Prime Numbers   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example to run prime check class
Class: Check Prime Numbers
Show prime numbers between two values
Author: By
Last change: add function include
Date: 12 years ago
Size: 155 bytes
 

Contents

Class file image Download
<?php
   
include('prime_check.php');
   
$input[0] = 1000000;
   
$input[1] = 1001000;
   
$prime = new PrimeNumbers($input[0], $input[1]);
   
$prime->display();