I apologize in advance if this is a needless question.
I've looked around for syntax on php echo and require functions, and multiple pages have different answers. However, each version of the syntax works.
What I want to know is if any of these versions are obsolete, or if one performs slightly better than the other.
<?php echo($variable); ?>
<?php echo $variable ?>
<?php require('file.php'); ?>
<?php require 'file.php'; ?>
I see them with parentheses, without parentheses, with single quotation marks, without.. etc.
Is there a definitive syntax for each one?
Thank you.
require_onceechoorrequireneed parentheses. See Phil's answer below.