Related Comparisons

ASP.Net versus PHP comparison chart
Edit this comparison chartASP.NetPHP
  • current rating is 3.53/5
  • 1
  • 2
  • 3
  • 4
  • 5
(60 ratings)
  • current rating is 3.66/5
  • 1
  • 2
  • 3
  • 4
  • 5
(114 ratings)
Block comments delimiter /* and */
Statement terminators Semicolon terminated
Arrays dynamically sized Yes
Inline comments delimiter // and #
String concatenation operator . (dot)
Programming paradigms imperative, object-oriented, reflective
Multi-dimensional arrays supported Yes
Array element access $array[i]
Type checking Dynamic
Syntax for string length strlen($string)
Intended use Web applications, CLI
Language design goals Robustness and simplicity
Vectorized operations Yes
Classes Yes
String comparison syntax strcmp($string1, $string2)
String equality testing syntax $string1 == $string2
Typing Weak typing
OOP (Object Oriented Programming) Yes, single inheritance.
String search syntax strpos($string, $substring[, startpos]) returns FALSE if search item ($substring) not found
String formatting syntax sprintf(formatstring, items)
Syntax for joining an array of strings implode(separator, array_of_strings)
Syntax for substring substr(string, startpos, numChars)
Syntax for search and replace within string str_replace($find, $replace, $string)
Syntax for reversing a string strrev($string)
Syntax for converting string to upper case strtoupper($string)
Garbage Collection Yes
Filename extension .php
Platform All
Paradigm(s) multi-paradigm: object-oriented, structured, imperative, generic, reflective
Programming-String type Built in string data type
Programming-include include 'file.php'; include_once(), require() and require_once()
Programming-input /output echo "hello"; print("Hello"); sprintf("Hello");
Client / Server Server-side scripting language
Examples of Use WordPress, Wikipedia

Add content for ASP.Net vs. PHP or review and improve the comparison table above.