PHP information and comparisons
| User Rating: | |
| 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 |