View Single Post
  #9 (permalink)  
Old 25-01-2008, 09:52
mephisto's Avatar
mephisto mephisto is offline
Senior Member
 
Join Date: Feb 2007
Location: Darlington
Posts: 100
Send a message via ICQ to mephisto Send a message via MSN to mephisto
Default

I used both ASP and PHP at work, as well as many others, and I find that I code much faster in PHP because there are so many ways of doing things that simplify your code. For example, to print out the letters A to Z separated by a comma

ASP:

Code:
<%
Dim i
For i = 65 To 90
   If i > 65 And i < 90 Then
      Response.Write ","
   End If
   Response.Write Chr(i)
Next
%>
PHP Code:
<?php
echo implode(','range('A''Z'));
?>
That's only a small example, but once you start getting into better object orientated stuff, PHP beats ASP hands down. ASP has no concept of asbtraction, inheritance or interfaces and it can't do reflection or dynamic function calls like PHP's callback feature.
Reply With Quote