How to remove carriage returns from output of string?

前端 未结 7 898
无人及你
无人及你 2020-12-08 04:30

I am using wordpress as a CMS and trying to allow user fields to be input to populate the info windows in a Google Map script. I am using this to select the id and pull in

相关标签:
7条回答
  • 2020-12-08 05:10

    This was the only thing solution that worked for me:

    $dataWithoutCarrierReturn = preg_replace('/[\x0D]/', '', $inData);
    
    0 讨论(0)
提交回复
热议问题