Comparing PHP, Perl, Python and Ruby
hyperpolyglot.org
Comparing PHP, Perl, Python and Ruby
1–10 of 92 posts
Re: Comparing PHP, Perl, Python and Ruby
#2Thanks for sharing, ill pass it on whenever a comparison is needed.
Re: Comparing PHP, Perl, Python and Ruby
#3This is great. Very handy for explaining to others the differences between various languages, and surprisingly enough until you get into the array functions i'm starting to feel like PHP isn't really that messy since reading this! Thanks for sharing, ill pass it on whenever a comparison is needed.
$array = [1, 2, 3];
Edit: While PHP still has it's fair share of issues, a lot of the same complaints people had 5-8 years ago aren't valid, and it probably has no more or less oddities than any other scripting language at this point.Re: Comparing PHP, Perl, Python and Ruby
#4Re: Comparing PHP, Perl, Python and Ruby
#5Very, very thorough. A great resource, thanks!
Re: Comparing PHP, Perl, Python and Ruby
#6 $a = array(1,2,array(3,4));
becomes: $a = [1,2,[3,4]];
Also 0b101010
works in 5.4.Re: Comparing PHP, Perl, Python and Ruby
#7Re: Comparing PHP, Perl, Python and Ruby
#8Re: Comparing PHP, Perl, Python and Ruby
#9Re: Comparing PHP, Perl, Python and Ruby
#10This is great. Very handy for explaining to others the differences between various languages, and surprisingly enough until you get into the array functions i'm starting to feel like PHP isn't really that messy since reading this! Thanks for sharing, ill pass it on whenever a comparison is needed.
PHP5.4 also has the short syntax array initializer: $array = [1, 2, 3]; Edit: While PHP still has it's fair share of issues, a lot of the same complaints people had 5-8 years ago aren't valid, and it probably has no more or less oddities than any other scripting language at this point.