Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 使用字符串\u replace重新装入内容_Php_String_Codeigniter - Fatal编程技术网

Php 使用字符串\u replace重新装入内容

Php 使用字符串\u replace重新装入内容,php,string,codeigniter,Php,String,Codeigniter,我用color:#ffffff重新拼写了一个字符串color:#000000 包含fieldname数据的datasase中的内容为 style="width:720px; height:700px;font-size:13px;color:#000000" 从数据库检索的值位于 $res = $row->data; 尝试php替换函数 例如: str#u replace(“#000000”、“#ffffff”、$string_var) echo str_replace("00000

我用
color:#ffffff
重新拼写了一个字符串
color:#000000

包含fieldname数据的datasase中的内容为

style="width:720px; height:700px;font-size:13px;color:#000000"
从数据库检索的值位于

$res = $row->data;
尝试php替换函数

例如:

str#u replace(“#000000”、“#ffffff”、$string_var)

echo str_replace("000000","ffffff",$res);