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!
I apologise if this seems basic in comparison to what others are asking but I'm trying to make sense of it
I have 4 questions:
Why use print when echo does the job & is less bloated?
Why won't print allow me to concatenate without the '.' showing up and echo does?
Why does the variable display as Courier even though it's not within the font tags?
What if I wanted the variable in a different font/colour/size etc?
hanna wrote:Why does the variable display as Courier even though it's not within the font tags?
It is within, because you're not closing your font tag correctly. </font> rather than </ font>. PS Use <span> or <div> with style elements rather than <font>
hanna wrote:What if I wanted the variable in a different font/colour/size etc?
There's very little difference between ' and '', but I'm following several different tutorials which gives conflicting opinions. I need to get a good book Thanks for the advice.
hanna wrote:There's very little difference between ' and '', but I'm following several different tutorials which gives conflicting opinions. I need to get a good book Thanks for the advice.
Basically, the difference is that you can use variables and slashed values such as \r and \n within double quotes (" "). The perk of using single quotes (' ') is that you can use the double quotes within them :>