注意:使用未定义的常量 [英] Notice: Use of undefined constant

查看:90
本文介绍了注意:使用未定义的常量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<?php
       $ch = '"';
       $i = '0';
       for($i = 0; $i < 10; $i++)
       {
    echo '<input type="button" id="button_'.i.'" class="mybuttons" value="but"  önclick='.$ch.'add()'.$ch.'/>';
       }
       ?>





注意:

注意:使用未定义的常数我 - 假设''我'



我收到此消息...



Notice:
Notice: Use of undefined constant i - assumed ''i''

I am getting this message...

推荐答案

ch = ' ';
ch = '"';


i = ' 0' ;
for(
i = '0'; for(


i = 0 ;
i = 0;


这篇关于注意:使用未定义的常量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆