Jump to content

[SOLVED] wrong parameter count


xyn

Recommended Posts

Sorry; and i didnt fix it lol.

problem is with my bbcode:

 

error:

Warning: Wrong parameter count for eregi_replace() in D:\Intranet and Development\intranet\classes\functions.inc.php on line 51

and its for each line with $str = eregi_replace();

 

function bbcode($str)
{	#	Text Decoration
$str = eregi_replace("[b](.*)[/b]", "<span style='text-decoration: bold;'>\1</span>");
$str = eregi_replace("[u](.*)[/u]", "<span style='text-decoration: underline;'>\1</span>");
$str = eregi_replace("[i](.*)[/i]", "<i>\1</i>");
$str = eregi_replace("[strike](.*)[/srtike]", "<span style='text-decoration: line-through;'>\1</span>");
$str = eregi_replace("[overline](.*)[/overline]", "<span style='text-decoration: overline;'>\1</span>");
$str = eregi_replace("[blink](.*)[/blink]", "<span style='text-decoration: blink;'>\1</span>");
return $str;
}

Link to comment
https://forums.phpfreaks.com/topic/68030-solved-wrong-parameter-count/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.