本文整理汇总了PHP中a::show方法的典型用法代码示例。如果您正苦于以下问题:PHP a::show方法的具体用法?PHP a::show怎么用?PHP a::show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类a
的用法示例。
在下文中一共展示了a::show方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testArrayShow
function testArrayShow()
{
$this->assertEqual(a::show($this->arr, false), '<pre>Array
(
[cat] => miao
[dog] => wuff
[bird] => tweet
)
</pre>');
}
示例2: ini_get
</dd>
<dt>Installed Snippets</dt>
<dd><?php
a::show(dir::read(c::get('root.snippets')));
?>
</dd>
<dt>Your config files</dt>
<dd><?php
a::show(dir::read(c::get('root.site') . '/config'));
?>
</dd>
<dt>Your entire config</dt>
<dd><?php
a::show(c::get());
?>
</dd>
<dt>PHP Error Reporting</dt>
<dd><?php
echo ini_get('display_errors') ? 'yes' : 'no';
?>
</dd>
</ul>
</body>
</html>
示例3: basename
$dir = $root . '/' . $name;
if (is_dir($dir)) {
$skipped[] = basename($dir);
continue;
}
dir::make($dir);
$content = implode("\n\n" . '----' . "\n\n", $output);
$file = $dir . '/' . $template;
f::write($file, $content);
}
putmessage('Exported ' . $n . ' articles to ' . $root . '<br /><br />');
if (!empty($errors)) {
putmessage(count($errors) . ' article(s) could not be imported<br /><br />');
}
if (!empty($skipped)) {
putmessage('The following folders have been skipped, because they already existed:' . a::show($skipped, false));
}
/**
* IXR - The Inutio XML-RPC Library
*
* @package IXR
* @since 1.5
*
* @copyright Incutio Ltd 2002-2005
* @version 1.7 (beta) 23rd May 2005
* @author Simon Willison
* @link http://scripts.incutio.com/xmlrpc/ Site
* @link http://scripts.incutio.com/xmlrpc/manual.php Manual
* @license BSD License http://www.opensource.org/licenses/bsd-license.php
*/
/**
示例4: dump
function dump($var)
{
return a::show($var);
}
示例5: validate
/**
* Checks if all required keys are in the 'raw' event array. Throws an
* exception if one is missing.
*
* @param array $event a 'raw' event array containing all fields
*/
private static function validate($event)
{
$missingKeys = a::missing($event, self::$requiredKeys);
if ($missingKeys) {
$message = "Event creation failed because of the following missing " . "required fields:\n" . a::show($missingKeys, false);
throw new Exception($message, 1);
}
}