Login   Register  
PHP Classes
elePHPant
Icontem

File: listtest.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Allan Bogh  >  Singly Linked List  >  listtest.php  >  Download  
File: listtest.php
Role: Example script
Content type: text/plain
Description: Test file written in PHP and HTML.
Class: Singly Linked List
Manage singly linked lists of data values
Author: By
Last change:
Date: 2007-01-22 10:08
Size: 482 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
<?php
include("includes/classes/linkedlist.php");

$list = new LinkedList();
$list->addData(1);
$list->setNext(2);

echo 
$list->getData();
echo 
'<br>';
$next $list->getNext();
echo 
$next->getData();
?>
</body>
</html>