PHP Basic Tutorial notes, PHP Basic Tutorial _php Tutorial

Source: Internet
Author: User
Tags learn php

PHP Basic Tutorial notes, PHP Basic tutorial


A long time to know the PHP, but has not been to study, and now began to learn PHP, hope that one day from the Red C # of the cumbersome release, to PHP concise and clear. A large development environment is enough for my trouble, every time the installation must be installed Vs,sql.

PHP environment is very simple to build, because I took a short cut, online download Wamp Service 2.5, the official website http://www.wampserver.com/, there are 32 and 64-bit, must download the system consistent version, otherwise there will be strange errors, This delayed me for a long time.

Learn the language of course need books, online find an electronic version of PHP Basic Tutorial 4, very suitable for PHP novice learning, the following is my study notes, recorded for later to see, but also to their own supervision.

First, several ways to achieve the output Hello World

!--? php echo "Hello world!";  
print "Hello world!"; 
print_r ("Hello world!"); 
eval ("echo \" Hello world\ ";") 
?

Echo can output multiple values at once. Echo is a language structure (language construct), not a real function.

Print () applies only to scalar types such as numbers and strings, and returns True if the string successfully displays, otherwise false. The

Print_r () can print strings and numbers simply, while arrays are displayed in the enclosed Key and merit list and begin with an array. The

Eval () function executes the PHP code in the string.

http://www.bkjia.com/phpjc/1042017.html www.bkjia.com true Span id= "Isbasedonurl" itemprop= "Isbasedonurl" >http://www.bkjia.com/phpjc/1042017.html techarticle php basic tutorial notes, PHP Basic tutorials long known PHP, But there is no time to study, now began to learn PHP, hope that one day from the Red C # of the cumbersome release, 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.