paul says | ||||
i know this is really random, but do you use print ""; or echo ""; lol i find it really annoying when people use print :o |
||||
Total Topic Karma: 12 | - More by this Author |
hx10 says |
|
|||||
echo(); for me | ||||||
- 06 February, 2007 |
Admin Jawad says |
|
|||||
echo() for life. Print is probably still in use thanks, in part, to C and Basic. | ||||||
- 06 February, 2007 |
eviljawdy says |
|
|||||
hehe, "fprintf" for me there people - partly cus of the support for it on the random platforms I wind up coding on ;-) And also, partly cus I've only ever used echo() on server side scripting - is that bad? |
||||||
- 07 February, 2007 |
paul says |
|
|||||
print still is in use, one of my mates uses it.. lol, hes also a super messy coder, i like to make my code look nice and layed out easily. | ||||||
- 07 February, 2007 |
eviljawdy says |
|
|||||
Oh I have to have my code tabbed perfectly, spaces in the right places, comment every closing "}" and have all comments aligned. So I know what you mean about making sure it's all layed out and neat! | ||||||
- 07 February, 2007 |
Constantine says |
|
|||||
echo(); | ||||||
- 08 February, 2007 |
Rathmaster says |
|
|||||
im a noob to programming, and im wondering what exactly the difference is (apart from print being longer to type) | ||||||
- 08 February, 2007 |
paul says |
|
|||||
print is oldskool | ||||||
- 08 February, 2007 |
LearningNerd says |
|
|||||
I'm just learning PHP now (doing my PHP video blog ), and I've been using echo -- don't know why, actually. Maybe cause that's what I've seen used more often. Anyway, I learned this just the other day: the main difference between print and echo (as I understand it) is that print returns a value of 1, and echo doesn't return any value. So you can use print as part of more complex stuff, but you can't do as much with echo. Here's a page that explains the difference: http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 |
||||||
- 08 February, 2007 |
Rathmaster says |
|
|||||
ah ok. im not much of a coder. every time ive tried it its like a soapy string and there's a weight on the end. i just cant grasp it. its not that im stupid, i just cant think that way. |
||||||
- 08 February, 2007 |
pirana0 says |
|
|||||
echo "I use echo. "; | ||||||
- 09 February, 2007 |
Ati says |
|
|||||
Well Rathmaster, it's not that hard if you think of it as learning another language. It has its own grammer, nouns, adjectives, imperatives etc. Then you use this language to describe what you want, and the computer makes it. Simple. |
||||||
- 11 February, 2007 |
says |
|
|||||
huh? Theres an echo? I thought it depends on what yer using to program. I use printf() and fwrite. | ||||||
- 13 February, 2007 |
Ati says |
|
|||||
I use print, simply because it is easiest to remember. | ||||||
- 18 February, 2007 |
|