class struct {
public $variable=$_SESSION['Example'];
}
Run Code Online (Sandbox Code Playgroud)
如何调用Session并将其放入php类的变量中?
<?php
echo $Variable;
?>
**// I would like to check if the variable is empty, using but if() statements but more secure than...**
if($var == "")
Run Code Online (Sandbox Code Playgroud)
是否有可能检查变量是否比这更安全?