Php basic tutorial notes, php basic tutorial _ PHP Tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.