Jump to content

[SOLVED] Functions


.Darkman

Recommended Posts

Hello all,

 

I am new to PHP.

 

I used this to create a function

function html_parse($str)
{
strip_tags($str, '<b><i><u><s><a><img><br>');
}

 

And i used the function as :

				$comment = $_POST['comment'];
			$comment = html_parse($comment);

 

It didn't work.

 

Could some one tell me how to do it ?

 

 

 

Thanks,

Link to comment
https://forums.phpfreaks.com/topic/41912-solved-functions/
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.