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

admin5年前php1417

 <?php 

$cars=$_POST['shuju'];

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

print_r($cars)



  ?>

 


相关文章

php post undefined index,PHP 中提示undefined index的解决方案

声明为空isset($_POST['user_email']),或者,empty($_POST['user_email'])在php.ini中设置error_repor...

php数组元素的增加删除修改操作方法

增加$arr[$iy]["pr_count"]+=$pr_count;减少$arr[$iy]["pr_count"]-=$pr_count;删除unset($a...

php过滤emod与特殊字符

<?php  function xml_entities($string) { //过滤emod $ts_zifu= json_encode($st...

面向过程的php sqlhelp

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

数组问题整理

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

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

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

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

发表评论    

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