Code
  • 首页
  • cpu-architecture
  • performance
  • c++
  • branch-prediction
  • java

删除多个空白空间

我得到$row['message']从一个MySQL数据库,我需要删除所有的空白,如\n \t等。应格式化为:我试着:但它不删除\n或\t,只删除单个空格。有人能告诉我怎么做吗?

stringregexphpwhitespacepreg-replace
2024-11-18 09:21:48
  • 1

aliyun

最新文章

  • 如何禁用标准错误流的日志记录?
  • 增强的for循环中的Null检查
  • 如何找到某个时候分配给你的问题?
  • 在' awk '中打印倒数第二列/字段
  • Ruby中“or”和||的区别?
  • c++ 11中的递归lambda函数
  • 在TortoiseHg储存密码
  • 如何获得十六进制颜色值而不是RGB值?
  • 如何从命令行通过mysql运行一个查询?
  • 用Matplotlib在Python中绘制时间
  • 字符串strip() JavaScript?
  • 正则表达式中的单词边界是什么?
  • 类中的Python装饰器
  • 如何在PowerShell中获得本地主机名?
  • 如何从SQL Server Management Studio的历史记录中删除“服务器名称”项

标签

cpu-architectureperformancec++branch-predictionjavaundogit-commitgitversion-controlgit-remotegit-pushgit-branchgit-pullgit-fetchpythongeneratoriteratorjsonmime-typescontent-typearraysjavascriptgit-addcode-formattingcstandards-complianceoperatorscommentsdynamic-memory-allocationstackmemory-managementheap-memorylanguage-agnosticoverwritebackground-colorbrowserhtmldomjqueryvisibilityuse-strictsyntaxjslintremote-branchgit-checkoutpython-moduleidiomsprogram-entry-pointnamespacesbranch
2025 code 京ICP备15047053号-1