<?php
 
 
require_once 'getRo.php';
 
 
$getRo = new getRo;
 
 
/**
 
 * Get all available counties
 
 */
 
echo '<pre>';
 
print_r($getRo->getCounties());
 
echo '<pre>';
 
 
/**
 
 * Get all available localities foreach county
 
 */
 
foreach($getRo->getCounties() as $county) {
 
    echo $county, "<br />";
 
    
 
    echo '<pre>';
 
    print_r($getRo->getLocalities($county));
 
    echo '<pre>';
 
}
 
 
/**
 
 * Count all the counties
 
 */
 
echo $getRo->countCounties();
 
 
/**
 
 * Count all the localities in a given county
 
 */
 
echo $getRo->countLocalities('Tulcea');
 
 |