Would I ask a basical question ?
When I set a parametr, I have type $id_number --> is it good ? or without "_ " in string
basical string
Moderator: General Moderators
Variables names in php are allowed to contain underscores. I guess it is a matter of personal preference. I tend to use underscores as well.
To give you an idea, the combinations below are all possible.
To give you an idea, the combinations below are all possible.
Code: Select all
$id_number = 1;
$idnumber = 1;
$idNumber = 1;aha, so $id_number is possible.GeertDD wrote:Variables names in php are allowed to contain underscores. I guess it is a matter of personal preference. I tend to use underscores as well.
To give you an idea, the combinations below are all possible.Code: Select all
$id_number = 1; $idnumber = 1; $idNumber = 1;
But infuture I will use $idNumber, it's better
thanks much
That's called camelBack style -- for obvious reasons. 
http://www.fresnochaffeezoo.com/images/camel.gif
feyd | 75K gif..............
http://www.fresnochaffeezoo.com/images/camel.gif
feyd | 75K gif..............
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact: