<?php
// Include the PathVars class
require_once 'Url/PathVars.php';

// Create instance of PathVars
$pathVars = new PathVars($_SERVER['SCRIPT_NAME']);

echo 'This is the article script<br />';

if ($pathVars->fetchByIndex(0)) {
  echo 'The article ID is ' . $pathVars->fetchByIndex(0);
}
?>