Php basic tutorial notes, php basic tutorial. Php basic tutorial notes: php basic tutorials know php for a long time, but I have never had time to study. now I want to study php well and hope that one day I will be able to get rid of the hassle of c, basic php Tutorial Notes and basic php tutorials
I have been familiar with php for a long time, but I have never had time to study it. now I want to learn php well. I hope that one day I will be able to get rid of the hassle of c #, so I will go to php in a concise and clear way. A huge development environment is enough for me to have trouble. I have to install vs and SQL every time I install them.
The php environment is easy to build, because I took a shortcut and downloaded wamp service 2.5 from the Internet.
Of course, you need books to learn the language. Find an electronic version of php basic tutorial 4 on the Internet, which is very suitable for beginners of php. below are my learning notes, which will be recorded for future reference, it is also your own supervision.
I. several methods to output hello world
print "hello world!";
print_r("hello world!");
eval("echo \"hello world\";")
?>
Echo can output multiple values at a time. Echo is a language construct rather than a real function.
Print () is only applicable to scalar types such as numbers and strings. if the string is successfully displayed, true is returned. otherwise, false is returned.
Print_r () can print strings and numbers, while the Array is displayed in the form of an enclosed key and a list of values, and starts with Array.
The eval () function executes the php code in the string.
I know php for a long time, but I have never had time to study it. now I want to study php well. I hope that one day I will be able to get rid of the hassle of c # and move to php...