PHP Classes

File: examples.php

Recommend this page to a friend!
  Classes of Hadar Porat  >  Cities Israel  >  examples.php  >  Download  
File: examples.php
Role: Example script
Content type: text/plain
Description: Examples
Class: Cities Israel
Generate form select inputs with israeli cities
Author: By
Last change:
Date: 11 years ago
Size: 409 bytes


Class file image Download

// create object
$citiesIsrael = new CitiesIsrael();

// get city name by id
echo $citiesIsrael -> getCity(13003237);

// creates a form with location select and sub-select box
// location[0] - zone id
// location[1] - city id
<form action="examples.php" name="sdfds">
-> displaySelectBoxes(3, 2813238);
<input type="submit">