[PHP] 应用explode()函数将字符串转换成数组 →→→→→进入此内容的聊天室

来自 , 2020-12-09, 写在 PHP, 查看 132 次.
URL http://www.code666.cn/view/a4613e8d
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  4. <title>应用explode()函数将字符串转换成数组</title>
  5. </head>
  6.  
  7. <body>
  8. <?php
  9. $str = "PHP、JSP、ASP";                                       //定义一个字符串
  10. $strs = explode("、", $str);                                   //应用explode()函数将字符串转换成数组
  11. print_r($strs);                                                         //输出数组元素
  12. ?>
  13. </body>
  14. </html>
  15.  

回复 "应用explode()函数将字符串转换成数组"

这儿你可以回复上面这条便签

captcha