PHP notes for Java/C# programmer - set 1
Are you a Java/C# programmer looking for a crash course on PHP? Here is an easy way. In the next 5 days I will be going through the entire PHP documentation and will be taking notes which are relevant and unique to PHP.
I am a hardcore Java programmer and hence by following me you can quickly learn PHP! My notes will be mainly based on the online PHP manual. Here is the first set of PHP notes.
General PHP Notes
1. PHP - PHP:Hypertext Preprocessor is an open source general purpose scripting language.
2. PHP can be used for server side scripting, command line processing and as a GUI application (PHP-GTK).
3. PHP is changed to a proper object oriented language from version 5 onwards and allows OOP paradigm.
4. First sample program, the famous “Hello World”,
<html>
<head><title>Hello World</title></head>
<body>
<?php echo “Hello World” ?>
</body>
</html>
5. PHP exposes a set of superglobal variables accessible from anywhere. For example, $_POST superglobal can be used to extract http post parameters. $_POST is an associative array.
6. If the HTML form field name contains a dot(.), it is converted to an underscore(_) automatically by PHP. For example, if the text field name is “user.name”, you should use $_POST["user_name"] to retrieve its value!
7. There are a couple of mailing lists available for PHP. It is at http://www.php.net/mailing-lists.php. So far I have only subscribed to “Announcements”.
Next set of PHP notes on the language features will be published tommorrow.


