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

最新文章

  • Mac OS X中的环境变量
  • 在Python中锁定文件
  • c# vs Java Enum(适合c#新手)
  • 如何在不强制转换的情况下将double转换为long ?
  • c#消毒文件名
  • 二叉搜索树的定义中允许重复的键吗?
  • for循环和for-each循环在性能上有区别吗?
  • 你如何比较两个版本的字符串在Java?
  • 在c++中指针使用NULL或0(零)吗?
  • JavaScript:客户端验证与服务器端验证
  • 为什么在Java和。net中不能修改字符串?
  • 在c++中,如何将int值附加到字符串中?
  • 只用GitHub动作在特定分支上运行作业
  • “git restore”命令是什么?“git restore”和“git reset”之间有什么区别?
  • React钩子:从回调中访问最新状态

标签

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