Correcting teacher:查无此人
Correction status:qualified
Teacher's comments:完成的不错,继续努力
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>post</title>
</head>
<body>
<form action="" method="post">
<label for="email">邮箱:</label>
<!--将用户输入的内容动态添加到value字段中, 创建具有粘性的表单-->
<input type="email" id="email" name="email" value="<?php echo isset($_POST['email']) ? $_POST['email'] : ''; ?>">
<label for="password">密码:</label>
<input type="password" id="password" name="password" value="<?php echo isset($_POST['email']) ? $_POST['email'] : '';?>">
<button>登录</button>
</form>
</body>
</html>
if (isset($_POST['email'])) {
echo $_POST['email'];
echo '<hr>';
echo '<pre>';
print_r($_POST);
} else { // 给个默认值
$_POST['email'] = '';
}
$str = ' ouyangke ';
echo trim($str);
echo '<hr>';
$str = ' HuangRong ';
echo lrim($str);
echo '<hr>';
$str = ' guojing ';
echo rrim($str);
$str = 'ouyangke huangrong guojing';
echo str_replace('ouyangke','欧阳克',$str);
$arr = array(
'欧阳克',
'黄蓉',
'郭靖'
);
echo count($arr);
$arr1 = array(
'欧阳克',
'黄蓉'
);
$arr2 = array(
'郭靖',
'杨康'
);
$arr3 = array_merge($arr1,$arr2);
echo '<pre>';
print_r($arr3);
$arr = array(
'ouyangke',
'guojing',
'huangrong',
);
echo '<pre>';
print_r($arr);
echo '<hr>';
rsort($arr);
print_r($arr);
echo '<hr>';
$arr = array(
'欧阳克',
'黄蓉',
'郭靖'
);
echo '<pre>';
print_r($arr);
array_pop($arr);
print_r($arr);