textarea 表单按行转数组
值 $_G['cache']['plugin']['插件名称']['textarea字段']
$this->profile_custom_links = [];
if($_G['cache']['plugin']['插件名称']['textarea字段']){
$profile_custom_links = explode(PHP_EOL, $_G['cache']['plugin']['插件名称']['textarea字段']);
if($profile_custom_links){
foreach($profile_custom_links as $key=>$link){
$links = explode('|', $link);
$this->profile_custom_links[$key]['title'] = $links[0];
$this->profile_custom_links[$key]['url'] = $links[1];
}
}
}
填写格式:
链接文本1|链接地址1
链接文本2|链接地址2
链接文本3|链接地址3