PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
zoonx
Forum Newbie
Posts: 1 Joined: Sat Sep 04, 2004 11:36 am
Post
by zoonx » Sat Sep 04, 2004 11:40 am
Code: Select all
$post = stripslashes($post);
$post = highlight_string($post,true);
$post = str_replace('їphp]',"&nbsp;&nbsp;&nbsp;<font size='2' color='#00004F'>PHP</font><br><div align=center><table border='1' style='border-collapse: collapse' bordercolor='d2e3ea' width=450 cellspacing=0 cellpadding=2 bordercolor=000000 bgcolor=#FCFDFE height='17' dir='ltr'><tr><td width=450 align=left height='13'><font size='2'></div>",$post);
$post = str_replace("ї/php]","</span></font></td></tr></table></center></div>",$post);
thist font not change
Code: Select all
<?php
$post = "<font face = 'Tahoma' size ='3'>$post</font>";
?>
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sat Sep 04, 2004 12:02 pm
highlight_string returns the code inside a code block, last I checked.
m3mn0n
PHP Evangelist
Posts: 3548 Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada
Post
by m3mn0n » Sat Sep 04, 2004 12:18 pm
Indeed it does.
[php_man]highlight_string[/php_man]()