Moin!
Es heisst natürlich so:
$test = explode("#@#",$saved["MyColumn"]);
var_dump($test);
echo "<br>";
if(!empty($test)){
print_r($test);
echo "<br>die länge ist " . count($test);
$test = $test[1];
}
$test ist nicht empty, es ist ein Array, das ein Element enthält (nämlich das Nullte).
empty() ist nur dann wahr, wenn es ein leeres Array findet.
explode() liefert aber immer ein Array mit mindestens einem Element zurück, niemals ein leeres Array.
- Sven Rautenberg
--
"Love your nation - respect the others."
"Love your nation - respect the others."