What is snake case?

PHP: What is snake case?

Snake case is the way of writing words/phrases, where each word is separated by an underscore character. It is often used for variable names. For example $blog_posts is in snake case. Sometimes it is written as snake_case.

See also Camel case (e.g. $camelCaseVariable)

webdevetc profile pic
webdevetc

I am a 29 year old backend web developer from London, mostly focusing on PHP and Laravel lately. This (webdevetc.com) is my blog where I write about some web development topics (PHP, Laravel, Javascript, and some server stuff). contact me here.



More...


Comments and discussion about What is snake case?

Found this interesting? Maybe you want to read some more in this series?

Or see other topics in the PHP language

Or see other languages/frameworks:
PHP Laravel Composer Apache CentOS and Linux Stuff WordPress General Webdev and Programming Stuff JavaScript
Or see random questions

What is Agile software development?

What are the predefined variables in PHP?

How to fix the MySQL related "Specified key was too long error" error in Laravel

How to hide the server signature (hide Apache info) from HTTP headers with .htaccess

How to create random numbers in JS?

How to undelete a soft deleted Eloquent row?

How to review blog posts (written by other users) before they get published on your WordPress blog?

How to make Apache force download of files (in .htaccess)

How to hide directory listing in .htaccess?

How to provide a default model object for relationships?