[英]I'm trying to continue an undefined offset code in php
I have code in php.我在php中有代码。 The values of variables are empty but I want to continue if the variable is empty or not.变量的值为空,但如果变量为空,我想继续。
$str_array = explode(",",ltrim($e4view, ", "));
if (isset($str_array[0][1][2])) {
$f4irst = $str_array[0];
$s4econd = $str_array[1];
$t4hird = $str_array[2];
echo $f4irst + $s4econd + $t4hird;
你想这样做吗?
if (empty($str_array[0]) && empty($str_array[1] …) {
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.