Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个单词的文本区域,由传递给我的 PHP 页面的行分隔,我想将单词分隔成一个数组,然后在新行上打印每个单词。
我该怎么做呢?下面的代码对吗?它似乎不起作用!
<?php $words = $_POST["words"]; $arr = explode("\n",$words); ?>