Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 months ago. Improve this question I have been interested in Laravel Livewire for a few days. But I wonder what is the best way to use
Tag: naming-conventions
Use of php variable $_ (dollar sign followed by an underscore)
Is that really true that i can use $_ as a dummy variable in foreach loop if there is no need for $value in foreach($array as $key => $value)? I could not find any useful information that proves this except PHP syntax formatting. There’s a special case for foreach loops when the value is not used inside the loop. In
PHP naming conventions about abstract classes and interfaces
Should an abstract class always be prefixed with Abstract and suffixed with Interface (when it’s an interface)? Is there any standard naming convention, similar to PSR-0 for folder structure/namespaces, but for classes? It seems redundant as the language has literal keywords for this very purpose. Answer There isn’t a convention for this; especially in PHP. This can all be organized