logo

Crowdly

Browser

Add to Chrome

Wähle die zutreffende Variablenart der Variable $errors . <?php $errors =...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Wähle die zutreffende Variablenart der Variable $errors.

<?php

$errors = [];

function validateName($name)

{

global $errors;

if (strlen($name) == 0) {

$errors['name'] = "Name darf nicht leer sein";

return false;

} else if (strlen($name) > 20) {

$errors['name'] = "Name zu lang";

return false;

} else {

return true;

}

}

?>

More questions like this

Want instant access to all verified answers on moodle.tsn.at?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome