如何解決PHP錯誤'注意:數(shù)組到字符串轉(zhuǎn)換...'我有一個PHP文件,試圖回應(yīng)一個$_POST,我得到一個錯誤,這里是代碼:echo "<html>";echo "<body>";for($i=0; $i<5;$i++){
echo "<input name='C[]' value='$Texting[$i]' " .
"style='background-color:#D0A9F5;'></input>";}echo "</body>";echo "</html>";echo '<input type="submit" value="Save The Table" name="G"></input>'這是回應(yīng)POST的代碼。if(!empty($_POST['G'])){
echo $_POST['C'];}但是當代碼運行時,我得到一個錯誤:Notice: Array to string conversion in C:\xampp\htdocs\PHIS\FinalSubmissionOfTheFormPHP.php on line 8這個錯誤意味著什么,我該如何解決?
如何解決PHP錯誤'注意:數(shù)組到字符串轉(zhuǎn)換...'
慕田峪9158850
2019-08-12 17:21:13