SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: concatenation problem (I think)
-
Mar 15, 2002, 23:01 #1
- Join Date
- May 2001
- Location
- Los Angeles, California
- Posts
- 86
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
concatenation problem (I think)
ok, here is the line of code that is giving me a problem (The one that start with "$tag...")
PHP Code:function create ()
{
$tag = "<font style=\"font-family: '" . font_name() . "'; font-size: " . font_size() . "pt; " . font_bold() . font_italic() . "\">";
echo $tag;
}
<? create(); ?>hi!</font>sans-serif21<font style="font-family: ''; font-size: pt; ">hi!</font>www.iyeinteractive.com - Website Design and Programming
www.totalnonsense.net - my site, Under Construction
-
Mar 16, 2002, 00:12 #2
In the font_size(), etc. use
PHP Code:function font_size()
{
// Just an example
return 8;
}
-
Mar 17, 2002, 10:50 #3
Re: concatenation problem (I think)
Hey, men, watch your quotes carefully!
I was looking at your code & I can't figure out
the arrangement of quotes
Try this style:
' any tags with <xxx> and ...="xxx" '.$variable.' tags again'
Maybe it's not the key here, but in my case the single
quotes are always doing their job
-
Mar 17, 2002, 12:25 #4
- Join Date
- May 2001
- Location
- Los Angeles, California
- Posts
- 86
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
thanks to both of you
return is exactly what I need
and I did change all the quotes to single, much easier
thanks againwww.iyeinteractive.com - Website Design and Programming
www.totalnonsense.net - my site, Under Construction
Bookmarks