花一小时了解如何在左侧的单元格中找到文本,上部行。
class Site {
protected $config;
function __construct() {
$this->config = include("resources/config.php");
}
private function connect() { /*database connection*/ }
public function getData($var) {
/* connecting, $var = amout of rows, and storing the data in array() */
}
}
class SiteView {
private $data;
function __construct(Site $data) {
$this->model = $data;
}
public function output() {
if(!empty($this->model->data)) { /* displays the data */ }
}
public function render($template) {
return include("$template");
}
}
class SiteController {
public function __construct(Site $respond) {
$this->model = $respond;
}
public function condition() {
$view = new SiteView($this->model);
$view->render("header.php");
if(!isset($_GET['action'])) {
$view->render("body.php");
} else if($_GET['action'] === "report" AND isset($_GET['id'])) {
$view->render("report_body.php");
} else if ...
}
答案 0 :(得分:0)
检查数据是否有新行/回车字符。
我试图重现您的结果,但无法这样做。默认情况下,您的结果已经垂直左对齐。由于您没有在语法中输入任何标题中断,因此标题和数据之间的有用/不需要的中断不会有额外的间距。
data list;
input myvariable $15.;
datalines;
Hello World!
;
proc report data=list;
column myvariable;
define myvariable / display left;
run;