已采纳回答 / superstyle
$str_string1='甲问:"你在哪儿学的PHP"';$str_string2="乙毫不犹豫的回答:'当然是慕课网咯!'";$str_string3='甲问:\'能告诉我网址吗?\'';$str_string4="乙答道:\"www.imooc.com\" ";在第二行少了一个单引号而且结尾没有分号
2016-08-03
<?php
$maxLine = 4; //每排人数
$no = 25;//学生编号
$line=ceil($no/$maxLine);
$row=$no%$maxLine;
if($row<=0){
$row=$maxLine;
}
echo "考号为:<b>".$no."</b>的座位在第<b>".$line."</b>排第<b>".$row."</b>个位置";
?>
$maxLine = 4; //每排人数
$no = 25;//学生编号
$line=ceil($no/$maxLine);
$row=$no%$maxLine;
if($row<=0){
$row=$maxLine;
}
echo "考号为:<b>".$no."</b>的座位在第<b>".$line."</b>排第<b>".$row."</b>个位置";
?>
2016-08-02