[英]I'm trying to continue an undefined offset code in php
我在php中有代碼。 變量的值為空,但如果變量為空,我想繼續。
$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.