field_loop_range.php 494 字节
Newer Older
aaronchen2k2k's avatar
aaronchen2k2k 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#!/usr/bin/env php
<?php
/**
[case]
title=Loop使用区间
cid=1374
pid=7

[group]
 显示10行生成的数据    >>
 验证第3行数据重复了4次 >>

[esac]
*/

include_once __DIR__ . DIRECTORY_SEPARATOR . '../lib/zd.php';

$zd = new zendata();
$output = $zd->create("", "advanced.yaml", 10, "", array("fields"=>"field_loop_range"));

$count = sprintf("%d", count($output));
print(">> $count\n");

$arr = explode("|", $output[2]);
$count = sprintf("%d", count($arr));
print(">> $count\n");