PHP Classes

File: example_localFile.php

Recommend this page to a friend!
  Classes of Armin  >  simpleTagReader  >  example_localFile.php  >  Download  
File: example_localFile.php
Role: Example script
Content type: text/plain
Description: example
Class: simpleTagReader
Extract values from tag based documents
Author: By
Last change:
Date: 14 years ago
Size: 373 bytes
 

Contents

Class file image Download
<?php
// read local XML file
require_once('class.simpleTagReader.php');

$fileLen = filesize('example_localFile.xml');
$test = new simpleTagReader('example_localFile.xml', $fileLen);

$map_no5 = $test->readTag('map', 5);//read 5th "map" Tag
echo "5th map: " . $map_no5;

echo
"<br />";

$all_names = $test->readAllTags('name');//read All "name" Tags
print_r($all_names);
?>

For more information send a message to info at phpclasses dot org.