Hi again,
Having had a little experience of HTML and style classes but only a limited
knowledge of PHP perhaps somebody can tell me the pros and cons of the
following.
Surely if I write something in PHP like
$style = "<b><i><fon t size='1'>"
$endstyle ="</b></i></font>"
$s = array($style,$e ndstyle)
echo $s[0] . "I want my font in bold italic and size 1" . $s[1]
does this not do the same as style classes? Taking it one step further, if I
write all of the styles in a script called styles.php and include it in all of
my php pages is that not the same as having a .css file?
Why use 2 programming languages when it can be done in 1?
Comments please
Having had a little experience of HTML and style classes but only a limited
knowledge of PHP perhaps somebody can tell me the pros and cons of the
following.
Surely if I write something in PHP like
$style = "<b><i><fon t size='1'>"
$endstyle ="</b></i></font>"
$s = array($style,$e ndstyle)
echo $s[0] . "I want my font in bold italic and size 1" . $s[1]
does this not do the same as style classes? Taking it one step further, if I
write all of the styles in a script called styles.php and include it in all of
my php pages is that not the same as having a .css file?
Why use 2 programming languages when it can be done in 1?
Comments please
Comment