Home  >  Article  >  Backend Development  >  变量如何转换成数组里面的内容

变量如何转换成数组里面的内容

WBOY
WBOYOriginal
2016-06-13 12:37:05945browse

变量怎么转换成数组里面的内容
$contt='"1","2","3","4"';
session_start();
$ar=array(
$contt
);
$an=array(
"1",
"2",
"3",
"4",
);

$contt要用什么函数进行转换呢?ar和an才会是一样的。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn