My PHP personal shares 1. remove the underline? A: hover {text-decoration: underline; color: red} 2. date ('Y-m-D ');? Year :? Y: four digits? Y: two digits? Month :? M: Three abbreviations? F: My PHP personal shares in English
1. remove the underline? A: hover {text-decoration: underline; color: red}
2. date ('Y-m-D ');
? Year:
? Y: four digits
? Y: double digits
? Month:
? M: Three abbreviations
? F: Full English
? M: month, with leading 0
? N: no leading 0
? :
? J: No leading date
? D: Date with leading 0
? S: date suffix
3. time indicates date ('H: I: s ');
? Hour:
? G: hour without leading (12-hour system)
? H: Hour with leading (12-hour)
? G: hour without leading (in 24-hour format)
? H: Hour with leading (in 24-hour format)
4. read and write files in PHP:
? Var $ fp = fopen (filename, mode );
? Mode description
? "R" is opened in read-only mode, pointing the file pointer to the beginning of the file.
? Open the "r +" read/write mode and point the file pointer to the beginning of the file.
? Open the "w" write mode, point the file pointer to the beginning of the file, and cut the file size to zero. If the file does not exist, try to create it.
? Open in "w +" read/write mode. point the file pointer to the beginning of the file and cut the file size to zero. If the file does not exist, try to create it.
? "A" is opened in writing mode, pointing the file pointer to the end of the file. If the file does not exist, try to create it.
? Open the "a +" read/write mode and point the file pointer to the end of the file. If the file does not exist, try to create it.