Echo & nbsp; "& lt; br/& gt; & nbsp; last file modification time ". date ("Y-m-d & nbsp; H: I: s)", $ file_info ['mtime']); echo & nbsp; "& lt; br/& gt; & nbsp; the code in the last modification of the file is not clear.
Echo"
Last file modification time ". date (" Y-m-d H: I: s) ", $ file_info ['mtime']);
Echo"
Last file modification time"
Add. date ("Y-m-d H: I: s)" to the end of the connection. why do we add these two double quotation marks and put the quotation marks out of the brackets. This does not understand php file io
------ Solution --------------------
Wrong,
Echo"
Last file modification time ". date (" Y-m-d H: I: s ", $ file_info ['mtime']);
------ Solution --------------------
Date ("Y-m-d H: I: s", $ file_info ['mtime']);
Date ("Y-m-d H: I: s)", $ file_info ['mtime']);
With an extra bracket, you can understand it after running it.
------ Solution --------------------
Wrong. The brackets should not exist.
------ Solution --------------------
Wrong. The brackets should not exist.
------ Solution --------------------
Your code:. date ("Y-m-d H: I: s)", $ file_info ['mtime']);
Change to. date ("Y-m-d H: I: s", $ file_info ['mtime']);
------ Solution --------------------
What you think you don't understand is the last thing you shouldn't understand.
If the string is not over, you cannot take it out of context.
The string can save any content, including the date format string.
------ Solution --------------------
You treat date ("Y-m-d H: I: s", $ file_info ['mtime']) as a string
PHP concatenates a string with a dot (.)
Echo"
Last file modification time ". date (" Y-m-d H: I: s ", $ file_info ['mtime']);
------ Solution --------------------
Discussion triggered by a careless person
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