Hi Guys,
I found in a page that variables are declared in two ways:
$_start = 1;
$result = 2;
Is there is any difference between both variable declaration, why underscore ( _ ) has used in first variable.
Thank you.
Difference Between varibales
Moderator: General Moderators
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: Difference Between varibales
No, there's nothing special about an underscore in a variable name. Here's the manual on the basics of variables:
http://php.net/variables.basics
http://php.net/variables.basics
Re: Difference Between varibales
By convention, an underscore often implies that a variable is for private use.