PHP Classes

File: sample/sample1.php

Recommend this page to a friend!
  Classes of sameer shelavale   PHP Countries List Array   sample/sample1.php   Download  
File: sample/sample1.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Countries List Array
Get names and codes of all world countries
Author: By
Last change:
Date: 8 years ago
Size: 541 bytes
 

Contents

Class file image Download
<?php
/**
 * Created by PhpStorm.
 * User: sam
 * Date: 12/15/14
 * Time: 8:50 PM
 */
use SameerShelavale\PhpCountriesArray\CountriesArray;
include(
"../src/CountriesArray.php" );



$countries = CountriesArray::get();
var_dump( $countries );


$countries = CountriesArray::get2d( 'alpha3' );
var_dump( $countries );


$countries = CountriesArray::get2d( 'alpha3', array( 'name', 'isd', 'continent' ) );
var_dump( $countries );


$countries = CountriesArray::get2d( null, array( 'name', 'num', 'isd', 'continent' ) );
var_dump( $countries );