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've heard that print is a function and echo is a commando, but is there any reasons for why using echo in some situations, while useing print in other? What is really the difference between them?
print() returns a value whereas echo() does not. Other than that there's no difference. Which you use is down to personal preference, I use echo() cause it's got one less character to type.