Theminus(hyphen)charactercanbeusedtospecifyarangeofcharactersinacharacterclass.Forexample,d-mmatchesanyletterbetweendandm
建议换行时机 有两个Unicode字符可用于在文本中手动指定潜在的换行点: U+2010(HYPHEN):该“硬”连字符表示可见的换行时机。即使该行实际上没有被断开,连字符仍然呈现。
php// Delimiters may be slash, dot, or hyphen$date = "04/30/1973";list($month, $day, $year) = split('
ExtenderisthesetofUnicodecharacterswithpropertyExtender.Hex_Digit=_Hex_Digit//Hex_DigitisthesetofUnicodecharacterswithpropertyHex_Digit.Hyphen
使用all-lower-hyphen-css-case对多字的文件名和配置键。 使用命名函数。它们使堆栈跟踪更容易遵循。 使用CAPS_SNAKE_CASE常量,事情应该不会改变,并且很少使用。