Monday, 30 November 2015

Store Variable in Arrays

$errors = array();

store value in $errors[]
like $errors[] = "hello world";


if(!empty($errors)){

foreach($errors as $error ){

echo $error;
}
}

No comments:

Post a Comment