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 ...