<?php
$new_data[1] = ['options' => '', 'title' => '上傳', 'side' => '0', 'weight' => '13', 'visible' => '0'];

//select CONCAT('//',`name`,'\\n\$new_data[',`func_num`,'] = array(\'options\' => \'',`options`,'\', \'title\' => \'',`title`,'\', \'side\' => \'',`side`,'\', \'weight\' => \'',`weight`,'\', \'visible\' => \'',`visible`,'\');')from `xx_newblocks` where `dirname`='tad_assignment' and `block_type`!='D' order by `func_num`
