Blogger Information
Blog 23
fans 0
comment 3
visits 15405
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
1118post传值和php函数学习———php第九期线上班
木易
Original
619 people have browsed it

POST传值练习

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>登录注册页面</title>
  6. </head>
  7. <body>
  8. <form action="" method="post">
  9. <label for="email">邮箱:</label>
  10. <input type="email" id="email" name="email">
  11. <label for="password">密码:</label>
  12. <input type="password" name="password" id="email">
  13. <button>登录</button>
  14. </form>
  15. </body>
  16. </html>
  17. <?php
  18. print_r($_POST);

PHP函数的学习

  1. <?php
  2. //转变为小写
  3. $int = 'ABc';
  4. echo strtolower($int);
  5. echo '<hr>';
  6. //转变为大写
  7. $int1 ='abc';
  8. echo strtoupper($int1);
  9. echo '<hr>';
  10. //获取字符串长度
  11. $int2= '这串123';
  12. echo strlen($int2);
  13. echo '<hr>';
  14. //去除字符串首尾的空格
  15. $int3 = ' 前面有空格 ';
  16. echo trim($int3);
  17. echo '<hr>';
  18. //字符串的替换
  19. $int4 ='abc';
  20. echo str_replace("abc","123",$int4);
  21. echo '<hr>';
  22. //字符串查找一组字符串是否存在
  23. echo strpbrk('i love china','l');
  24. echo '<hr>';
  25. //字符串分割为数组
  26. $int5 ="我 是 木 易";
  27. print_r(explode(" ",$int5));
  28. echo '<hr>';
  29. //将数组元素组合成字符串
  30. $arr = array(
  31. '我',
  32. '在',
  33. '学',
  34. 'php'
  35. );
  36. echo implode($arr);
  37. echo '<hr>';
  38. //md5(加密)
  39. $int6 = 'abc123456';
  40. echo md5($int6);![]

手写作业

Correcting teacher:查无此人查无此人

Correction status:qualified

Teacher's comments:完成的不错,继续努力
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post