Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ovidiu Lesei  >  UL to PHP array  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example of use
Class: UL to PHP array
Parse HTML lists to extract contained structure
Author: By
Last change:
Date: 3 years ago
Size: 312 bytes
 

Contents

Class file image Download
<?php 
//UL tests
include "ul_tests.php";
//Class main file
include "class_ul.php";

//Test 1
$xml = new ul($ul_str);
$tree $xml->levels();
print_r($tree);
//Test 2
$xml = new ul($ul_str2);
$tree $xml->levels();
print_r($tree);
//Test 3
$xml = new ul($ul_str3);
$tree $xml->levels();
print_r($tree);
?>