Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Possible Duplicates:
How are echo and print different in PHP?How are echo and print different in PHP?
Is there any difference between ‘print’ and ‘echo’ in PHP?Is there any difference between ‘print’ and ‘echo’ in PHP?
What’s the difference of echo,print,print_r in PHP?What’s the difference of echo,print,print_r in PHP?

There are several ways to print output in PHP; including but not limited to:

echo 'Hello'; echo ('Hello'); print 'Hello'; print ('Hello'); 

Are there any differences between these four? Also, do the parentheses make any difference at all?

Possible Duplicates:
How are echo and print different in PHP?
Is there any difference between ‘print’ and ‘echo’ in PHP?
What’s the difference of echo,print,print_r in PHP?

There are several ways to print output in PHP; including but not limited to:

echo 'Hello'; echo ('Hello'); print 'Hello'; print ('Hello'); 

Are there any differences between these four? Also, do the parentheses make any difference at all?

Possible Duplicates:
How are echo and print different in PHP?
Is there any difference between ‘print’ and ‘echo’ in PHP?
What’s the difference of echo,print,print_r in PHP?

There are several ways to print output in PHP; including but not limited to:

echo 'Hello'; echo ('Hello'); print 'Hello'; print ('Hello'); 

Are there any differences between these four? Also, do the parentheses make any difference at all?

insert duplicate link
Source Link

Possible Duplicates:
How are echo and print different in PHP?
Is there any difference between ‘print’ and ‘echo’ in PHP?
What’s the difference of echo,print,print_r in PHP?

There are several ways to print output in PHP; including but not limited to:

echo 'Hello'; echo ('Hello'); print 'Hello'; print ('Hello'); 

Are there any differences between these four? Also, do the parentheses make any difference at all?

There are several ways to print output in PHP; including but not limited to:

echo 'Hello'; echo ('Hello'); print 'Hello'; print ('Hello'); 

Are there any differences between these four? Also, do the parentheses make any difference at all?

Possible Duplicates:
How are echo and print different in PHP?
Is there any difference between ‘print’ and ‘echo’ in PHP?
What’s the difference of echo,print,print_r in PHP?

There are several ways to print output in PHP; including but not limited to:

echo 'Hello'; echo ('Hello'); print 'Hello'; print ('Hello'); 

Are there any differences between these four? Also, do the parentheses make any difference at all?

Source Link
Aillyn
  • 23.9k
  • 24
  • 63
  • 88

Differences between echo, echo(), print and print() in PHP

There are several ways to print output in PHP; including but not limited to:

echo 'Hello'; echo ('Hello'); print 'Hello'; print ('Hello'); 

Are there any differences between these four? Also, do the parentheses make any difference at all?