$data['state'] = 0,1,1,0
$state_select = explode(",",$data['state']);
我想讓第二個1變成0在存回陣列例如像
$data['date'] = 0,0,1,0
然後前後不要有逗號,該如何使用
$state_select = explode(",",$data['state']);
我想讓第二個1變成0在存回陣列例如像
$data['date'] = 0,0,1,0
然後前後不要有逗號,該如何使用