Can you help me, please?
I have this error:
Warning: ereg() [function.ereg]: REG_BADBR in
function rozdel($retezec, $prom=900){ $r = sprintf('^(.{%d}[^ ]*) (.*)$',$prom); $a = ereg($r, $retezec, $e); $return = $e[1]."..."; return $return; }
Thanks
I'm guessing that ereg() can't cope with {900}. Try preg_match(). You'd be advised to anyway, since ereg() is pretty old and unloved by comparison, and is being moved out of PHP and into PECL from version 6.
Weedpacket;10895204 wrote:I'm guessing that ereg() can't cope with {900}. Try preg_match(). You'd be advised to anyway, since ereg() is pretty old and unloved by comparison, and is being moved out of PHP and into PECL from version 6.
o.k. Thank you very much. I think that I found other solution.