可能重复:
我注意到很多PHP代码都使用条件语句,比如CONST ==变量。我成长的时候,语法总是相反的。这种结构有什么原因吗?
示例:
// this is the way I see it most typically represented in PHP
if ( false == $foobar ) { // do this }
// this is the way I normally do it
if ( $foobar == false ) { // do this }
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider