Quantcast
Channel: iT邦幫忙
Viewing all articles
Browse latest Browse all 15645

php 從資料庫取出陣列取出後,改某一個值之後,再儲存到資料庫

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

Viewing all articles
Browse latest Browse all 15645

Trending Articles