DEV Community

Ricardo Sawir
Ricardo Sawir

Posted on

My Formula in naming functions (Applicable in any programming languages)


// filename.php function filename_whatItIsAbout_whatItDoes(some, arguments) { // the code } //example //session.php function session_token_get() { return $_SESSION['token']; } 
Enter fullscreen mode Exit fullscreen mode

Do you have your own formula? You can share yours. I use this especially when dealing with top/global functions.

Top comments (0)