
First of all that wouldnt work as you'd have to use double quotes
echo( '$name' ); // "$name"
echo( $name ); // "Bob"
echo( "$name" ); // "Bob"
Hi, names James. I am a web developer.
Why are you using quotes to echo a variable?!
The way..PHP Code:echo (' $name1 ');
PHP Code:echo $name1;
// OR IF YOUR FANCY
echo( $name1 );
Using parenthesis' with language constructs doesn't bother me, but putting variables in quotes doesPersonal preference of my coding![]()
yeah, Its really confusing once you start going "$thisvar is like $great2thisvar and $that"
That confuses the **** into me lols
$thisvar . ' is like ' . $great2thisvar . ' and ' . $that
HyperText: 'TEH FIRSTZ RULEZ OF CODIGNZZ IS NOT TO PUT PARENTTHISTISZ ON A NON-FUNCTZIONZ OKIA??? ITS BAIDZ AND IT MIAKIS ME MADDD'
Last edited by Protege; 24-08-2008 at 12:53 AM.
Hi, names James. I am a web developer.
Want to hide these adverts? Register an account for free!