[thelist] quoting attributes was not filling total width

Jonathon Isaac Swiderski jonathon.swiderski at oberlin.edu
Tue Apr 17 13:07:09 CDT 2001


--On 17-Apr-1, Tony Crockford expounded on quoting attributes suchly:

> > Are you escaping the quotes?  Put a backslash before each
> > quote (that's not part of the PHP code):
> >
> > print    "<tr><td width=\"100%\">";
> >
> So, is it more typing to escape all my attributes, or is there an easier
> way?

if i recall what i've read correctly, PHP doesn't care about single vs. 
double quotes; that is, echo('bob') and echo("bob") do the same thing, so 
long as you pair like with like.  thus, you can use single quotes, like so:

print     '<tr><td width="100%">';

(note:  i am not an expert, i just started learning php about three weeks 
ago. . .)

--
Jonathon Isaac Swiderski             "Heul, why this interest in me?"
135 W Lorain St OCMR 2678            "You're a poet, Des.
Oberlin OH 44074                      You conform so differently."
                                     -Alan Dean Foster, Phylogenesis, p. 47
http://members.evolt.org/jswiders
soon: http://www.oberlin.edu/~PAN    jswiders at oberlin.edu




More information about the thelist mailing list