本文整理匯總了PHP中IO::echo_lines方法的典型用法代碼示例。如果您正苦於以下問題:PHP IO::echo_lines方法的具體用法?PHP IO::echo_lines怎麽用?PHP IO::echo_lines使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類IO
的用法示例。
在下文中一共展示了IO::echo_lines方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: define
define('HOMEPAGE', 'https://github.com/Alorel/AloWAMP');
/**
* Shortcut for isset($var) ? $var : null
*
* @author Art <a.molcanovas@gmail.com>
*
* @param mixed $var Reference to the variable
*
* @return mixed|null The variable or NULL if it's not defined
*/
function get(&$var)
{
return isset($var) ? $var : null;
}
/**
* Output wapper
*
* @author Art <a.molcanovas@gmail.com>
*
* @param string $str String to echo
*/
function _echo($str)
{
echo '[' . date('Y-m-d H:i:s') . '] ' . $str . PHP_EOL;
}
require_once DIR_CORE . 'class' . DIRECTORY_SEPARATOR . 'handler.php';
spl_autoload_register('Handler::autoloader');
IO::echo_lines();
new Settings();
$r = new Router();
$r->route();
示例2: Setup
<?php
$setup = new Setup();
_echo('Hi! I will guide you through the setup.' . PHP_EOL . 'First, let\'s check if you have some of the core directories present.');
IO::echo_lines(2);
$setup->checkDateTimezone()->checkDir(DIR_TMP, 'tmp folder')->checkDir(DIR_BIN, 'binaries folder')->checkDir(DIR_LOGS . 'php' . DIRECTORY_SEPARATOR, 'PHP log folder')->checkDir(DIR_LOGS . 'apache' . DIRECTORY_SEPARATOR, 'Apache log folder')->checkDir(DIR_LOGS . 'mysql' . DIRECTORY_SEPARATOR, 'MySQL log folder')->checkDir(DIR_LOGS . 'redis' . DIRECTORY_SEPARATOR, 'Redis log folder')->checkWWW()->checkPHP()->checkApache()->checkMySQL()->checkRedis()->checkMemcache();