PHP getting started simple syntax
1. the "echo" command tells the server to print a string of characters.
2. Explanation: The "var_dump" function can display the data type of our variables (which will be described later.
3. we can use
Body:
Send email online, you can use the mail () function. The format is as follows:
Mail (recipient, subject, content, mail file header);
On the Internet, send email to webmaster, usually this: webmaster@163.com so, when clicked Webmaste Queensland
PHP basic syntax looks familiar.
Running result: Hello, world! The variable is marked "$". You can also put the above "Hello, world!" Write the following code:
String concatenation is the use of "." (a period of English); Other arithmetic symbols
PHP can only be used array= (), in the new version of the phrase used in the square brackets []. Is the curly brace {} not more in line with the general public?
C # int[] array = {1, 2, 3, 4, 5, 6};
Java int[] arr = {0,0,0,0,0,0,0,0,0,0,0,};
Python (
PHP a few grammatical symbols problems
-
=
.
:
::
What do you mean by each other?
------Solution--------------------
class, calling non-static properties or methods in the class, such as: $this->aaa;
= = symbol between key,value in array, such as
I have introduced the basic HTML syntax in the article about HTML syntax. A static web page can be compiled, and dynamic interaction information is very important. For example, what is the membership system of some websites ?? You must run the
The following PHP error was encountered:parse Error:syntax error, unexpected $end in script.php the line xx after debugging found that the row that produced the error is a row in the middle of the file
$str. = ">\n";
Copy
Today do information collection page encountered a strange problem, study for a long time to find the root cause of the problem, it is a bit strange indeed.
(the younger brother often uses the C #, Java and other languages, PHP only occasionally in
Now write code accidentally entered a Chinese punctuation mark, it can not run.
I write code in Windows Notepad, is there any other good stuff?
Reply to discussion (solution)
You need an IDEThe most basic: notepade++, SublimeAdvanced:
In the ueditor through the syntax to choose PHP, posted to the Web page, can not correctly highlight the following PHP code, who can find the most fundamental problem where?
Ueditor to ' decrypt string ' there, * @return Strin is wrong .... The
Parse error: syntax error, unexpected $ end in script. php on line xxAfter debugging for a while, it is found that the line that produces the error is a line in the middle of the file.// $ Str. = "?> \ N ";Think of the line that the PHP interpreter
Parse error: syntax error, unexpected $ end in script. php on line xx
After debugging for a while, it is found that the line that produces the error is a line in the middle of the file.
// $ Str. = "?> \ N ";
Think of the line that the PHP
We usually know the syntax when running PHP. For example, deploy the PHP source file under Apache and access the file through a browser.
Sever 500
The error occurs when the server executes our script. At this time, we may guess that PHP has a
Encoding:
Edit settings-General-Workspace-right text file encoding-select other, change to UTF-8
Text file encoding in its properties dialog box is the UTF-8.
Edit settings-> General-> content types-open the right-> PHP content type
PHP has been doing two or three years, is the big project, the idea has, but the core code is to find someone else to write good code, how to learn to put someone else's code into their brains, use the time directly can knock on the code?
Reply
1. simple syntax rules (variable names are defined using curly brackets, applicable to all PHP versions): $ a = & amp; #39; flower & amp; #39; echo & quot; shereceivedsome $ as & quot; // invalid; the letter s is regarded as a valid variable name
Reply content:In fact, this problem should be reported because this problem does not constitute a problem, it is purely to black Baidu.
However, I just loved the black Baidu.
Another, "... The argument that single quotes are more
The PHP language has existed for more than 20 years and is clearly one of the most popular programming languages in the world. PHP is definitely the lingua-generic language for Internet server-side web programming.Although there are a wide range of
It's written in front of you.
PHP is a powerful server-side scripting language for creating dynamic interactive sites. PHP can contain text, HTML, CSS, and PHP code, execute on the server, and return to the browser in plain text
Code
Var_dump (& #039; 89: 90 & #039; 89); print it to true. How can this problem be solved?
Var_dump ('89: 90' = 89 ); It is true. How can this problem be solved?
Reply content:
Var_dump ('89: 90' = 89 ); It is true. How can this problem be
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