16.01.2016, 18:10
PHP код:
new
color_start_pos,
color_end_pos,
color[7];
color_start_pos = strfind(params[1], "<");
color_end_pos = strfind(params[1], ">");
strmid(color, params[1], color_start_pos, color_end_pos);
printf("{%s}%s", color, params[color_end_pos + 1]);