I am now from asp to php

windows

Guest
Ok guys, now I'm convinced the good of php (I'm asp developer). Ok, I have Download ed php installation file and successfully run "Hello World". I guess I will take really some time to get a hang of this php syntax. Ok, many questions about this php.

1. echo and print is same?
2. why some extension is php3 and some php?
3. $ represents it is a variable?
4. what is php's reserved word to captured a variable? for asp is request.form("variable_name")?

I think that's about it for this first time. Thanks.0. All these questions can be answered by reading the documentation at <!-- m --><a class="postlink" href="http://www.php.net/manual/">http://www.php.net/manual/</a><!-- m -->.

1. As far as I know, print and echo are the same. They're not really functions, but language constructs, and you dont even need to use parentheses around the output.

2. php3 is the old extension from version 3 of PHP, which is not to be used anymore. PHP is now in version 4.3.1(4.3.2 RC2).

3. Yes $it does. $ is used as a prefix to all variables.

4. I'm not sure what you mean here. Captured variable? Do you mean getting variables from a form? If registerglobals is off, which it rather should be, all variables from the form is reached from either $_POST or $_GET, depending on the method you use. ex. $_POST["variable_name"]thanks, what about phtml? i only know it is also php family.phtml is the same as php. but just keep it at php.
 
Back
Top