2017.08.05
Day 1 Saturday Sunny
php-string
A string is a word or a sentence enclosed in double quotation marks, for example: "hi,imooc! ”。 You can output this string in the PHP language output, like this:
<?php echo "Hi,how is you! ";? >
You can also enclose it in single quotes, just like the following code:
<?php Echo ' hi,nancy! ‘;? >
You can use two characters to 连接符
connect them, like this:
<?php Echo ' Hi, '. ' Kate ';? >
Note: The connector can concatenate multiple strings, and the example above is to split a string into two small strings and connect them with a connector.
In PHP, string connectors are represented by dots (.), which are more specific, and are represented by a plus sign (+) in other languages, such as: Javascirpt, ASP, C.
(.) is the end of the English period
Comments
There are also comment statements in PHP: a double slash (//). In other languages, use the/* Comment statement in HTML using the <!--comment statement-->,css */. As in the following code:
<?php//Output Hi,nancy
! echo "hi,nancy!"; ?>
Comment statements can be anywhere in the PHP program (but note statements must be written between <?php?>).
Note: This comment statement is intended for programmers.
Wamp Server integrated Development tools Panel functionality Introduction
w:windows--system
A:apache--web Service Software
m:mysql--the name of a database
p:php--Script programming language
localhost: Local Host
Webgrind: Website Performance analysis Tool
. conf--configuration file
. ini--configuration file
How to modify the Wamp customization file directory
Originally Wamp is the default anthology the integration profile in the castle is in the WWW folder under Wamp, but in order to separate the service from the work area, set the workspace yourself
In fact, the following two configuration files are modified in the root directory of the Wamp:
1.wampmanager.ini--Guide to Menu.left modify www to become his favorite name. Then change the path to your own work disk.
2.wampmanager.tpl--Guide to Menu.left Modify directory to become your work path and change the name
Finally stop WAMP work environment, close exit, and then enter, complete the modification.
But there is a problem I have not been able to solve, about setting up my own Workspace "Demo Directory"-Chinese display is garbled, Baidu to the information is required to modify the INI and TPL saved as ANSI-encoded form. I set, no success, can only be replaced by the English demo menu. I'm so lost, I don't know what to do.
Leave a suspense for yourself ~
PHP Learning Path (i)