if ($_POST['foo']) {
// bar
}
Run Code Online (Sandbox Code Playgroud)
这是说...if the $_POST['foo'] variable is a boolean, and is true...,
或者是这样说... if the $_POST['foo'] variable isset...,
或者是这样说... if the $_POST['foo'] variable is not null...,
或者这是说这些事情的组合?或者这是说完全不同的东西?