Php? Remove spaces
Trade name (Chinese): Limited
Trade name (English):
Firm address: Guangzhou city
Business items: Gold, silver, coins, banknotes, stamps, fun items, tea products
Name of contact person (Chinese): Zhang San
Name of contact person (English):
Phone 123232328899
Fax: QQ23232370566
Url:
e-mail: [Email protected]
$row [' content_tc '] = Str_replace ("', '", $row [' CONTENT_TC ']);
I replaced the blanks with Str_replace, but I didn't have any eggs.
The desired effect
Trade name (Chinese): Limited
Trade name (English):
Firm Address: Guangzhou City
Business items: Gold, silver, coins, banknotes, stamps, fun items, tea products
Name of contact person (Chinese): Zhang San
Name of contact person (English):
Tel: 123232328899
Fax: QQ23232370566
e-mail: [Email protected]
------to solve the idea----------------------
foreach ($information as $row) {
$row [' CONTENT_TC ']=preg_replace ("/[\t]+/", "', $row [' CONTENT_TC ']);
$row [' CONTENT_TC ']=nl2br ($row [' CONTENT_TC ']);
$informationAfterHandle [] = $row;
}