do { echo"I love you"; }while($is_loveyou_forever)

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 19:56:54
do{echo"Iloveyou";}while($is_loveyou_forever)do{echo"Iloveyou";}while($is_loveyou_forever)do{echo"Il

do { echo"I love you"; }while($is_loveyou_forever)
do { echo"I love you"; }while($is_loveyou_forever)

do { echo"I love you"; }while($is_loveyou_forever)
单从程序的角度来理
打印"I love you"后判断变量is_loveyou_forever是否为真,若为真则继续循环打印"I love you",否则退出循环.
从爱情的信息传递上来理解,可能包含这层含义(要小心了):
即使我不会永远爱你,也至少会爱你一次.(即使变量is_loveyou_forever为假,也会至少打印一次"I love you",因为是先打印再判断,如二楼所说).