Skip to content

Instantly share code, notes, and snippets.

@claylo
Created June 8, 2011 17:01
Show Gist options
  • Save claylo/1014832 to your computer and use it in GitHub Desktop.
Save claylo/1014832 to your computer and use it in GitHub Desktop.
Very simple PHP v Python comparison
<?php
function hello_world() {
// a world subset
$countries = array('USA', 'Germany', 'Spain', 'Austraila');
print_r($countries);
}
def hello_world():
# a world subset
countries = ['USA', 'Germany', 'Spain', 'Austrailia']
print countries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment