Hello,
I'm a "young" French developper in PHP. I learn on my own and, as I can see in differents forums or code source pages, some have brackets after "echo" and other not.
Are brackets needed for a site to be compliant such as W3C or, is it just an implementation in php 5.
This is just for my Personal culture.
Pleas forgive my English wich is not completed and thanks for answers.
Philippe.
May be I am not in the good post, for that, I beg your pardon.
veracity including bracket after echo ?
Moderator: General Moderators
veracity including bracket after echo ?
Last edited by titphil on Thu Nov 05, 2009 9:00 am, edited 1 time in total.
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: veracity including bracket after echo ?
I presume that you are talking about the difference between this:titphil wrote:Hello,
I'm a "joung" French developper in PHP. I learn on my own and, as I can see in differents forums or code source pages, some have brackets after "echo" and other not.
Are brackets needed for a site to be compliant such as W3C or, is it just an implementation in php 5.
This is just for my Personal culture.
Pleas forgive my English wich is not completed and thanks for answers.
Philippe.
May be I am not in the good post, for that, I beg your pardon.
Code: Select all
echo "Hello";Code: Select all
echo("Hello");-Shawn