Created
June 8, 2011 17:01
-
-
Save claylo/1014832 to your computer and use it in GitHub Desktop.
Very simple PHP v Python comparison
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function hello_world() { | |
// a world subset | |
$countries = array('USA', 'Germany', 'Spain', 'Austraila'); | |
print_r($countries); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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