我有一个 html 页面,其中一个文本框
<input type="text" id="region&activity">
<input type="button" id="result" value="submit">
在文本框中我输入了Race in Gujarat
我想将此值存储到数组中
某物。 Race
在一个数组中,Gujarat
在另一个数组中
帮助我或提供一些想法来做到这一点。
谢谢
最佳答案
试试这个
<?php
$abc='race in gujrat';
list($event,$state) = split('in',$abc);
echo $event;
echo $state;
?>
并将该字符串存储在数组中
关于php - 将文本框值存储在数组中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15678561/