Php Alphabet Loop

前端 未结 3 1601
日久生厌
日久生厌 2021-01-18 09:01

Why is this not work

3条回答
  •  轮回少年
    2021-01-18 09:53

    It is but you aren't seeing anything because:

    'hey' != '$i'
    

    Also if your $i wasn't in single quotes (making it's value '$i' literally)

    'hey' != 'a';
    'hey' != 'b';
    'hey' != 'c';
    ...
    'hey' != 'z';
    

提交回复
热议问题