Why does the php echo function doesn't require parenthesis? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why does the php echo function doesn't require parenthesis?

12th Jul 2018, 10:14 PM
gh tube
gh tube - avatar
2 Answers
0
It's just a matter of syntax. That's how it was in Python 2. print "Hello"
12th Jul 2018, 10:18 PM
Dlite
Dlite - avatar
0
echo is not a function ,it is a language construct so no parentheses needed!
12th Jul 2018, 10:34 PM
MO ELomari