把字符按照逗号分割成数组

admin4年前php1239

 <?php 

$cars=$_POST['shuju'];

$cars=explode(',', $cars);

print_r($cars)



  ?>

 


相关文章

短地址生成,全套配置教程

短地址生成,全套配置教程

nginx 配置location / {rewrite  ^(.*)$  /index.php?s=/$1  last;}code rotoo.top.7z...

面向过程的php sqlhelp

<?php $servername = "localhost"; $username = "root"; $...

php设置16位的md5加密方法

用substr函数实现substr(md5(变量),8,16);就可以实现默认的md5(变量)输出的是32位加密方法...

php替换ASCIII码空格字符的方法

需要用到PHP自带函数chr()方法如下:$string=str_replace(chr(0x01),"",$string);...

数组问题整理

$arr[]           //用于收集子数组;serialize($arr)&nb...

php下载地址

https://windows.php.net/downloads/releases/archives/...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。