• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ob_end_clean函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中ob_end_clean函数的典型用法代码示例。如果您正苦于以下问题:PHP ob_end_clean函数的具体用法?PHP ob_end_clean怎么用?PHP ob_end_clean使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了ob_end_clean函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: command_dd

 function command_dd()
 {
     $args = func_get_args();
     $options = $this->get_options();
     $dd = kernel::single('dev_docbuilder_dd');
     if (empty($args)) {
         $dd->export();
     } else {
         foreach ($args as $app_id) {
             $dd->export_tables($app_id);
         }
     }
     if ($filename = $options['result-file']) {
         ob_start();
         $dd->output();
         $out = ob_get_contents();
         ob_end_clean();
         if (!is_dir(dirname($filename))) {
             throw new Exception('cannot find the ' . dirname($filename) . 'directory');
         } elseif (is_dir($filename)) {
             throw new Exception('the result-file path is a directory.');
         }
         file_put_contents($options['result-file'], $out);
         echo 'data dictionary doc export success.';
     } else {
         $dd->output();
     }
 }
开发者ID:sss201413,项目名称:ecstore,代码行数:28,代码来源:doc.php


示例2: popular

function popular($skin_dir = 'basic', $pop_cnt = 7, $date_cnt = 3)
{
    global $config, $g5;
    if (!$skin_dir) {
        $skin_dir = 'basic';
    }
    $date_gap = date("Y-m-d", G5_SERVER_TIME - $date_cnt * 86400);
    $sql = " select pp_word, count(*) as cnt from {$g5['popular_table']} where pp_date between '{$date_gap}' and '" . G5_TIME_YMD . "' group by pp_word order by cnt desc, pp_word limit 0, {$pop_cnt} ";
    $result = sql_query($sql);
    for ($i = 0; $row = sql_fetch_array($result); $i++) {
        $list[$i] = $row;
        // 스크립트등의 실행금지
        $list[$i]['pp_word'] = get_text($list[$i]['pp_word']);
    }
    ob_start();
    if (G5_IS_MOBILE) {
        $popular_skin_path = G5_MOBILE_PATH . '/' . G5_SKIN_DIR . '/popular/' . $skin_dir;
        $popular_skin_url = G5_MOBILE_URL . '/' . G5_SKIN_DIR . '/popular/' . $skin_dir;
    } else {
        $popular_skin_path = G5_SKIN_PATH . '/popular/' . $skin_dir;
        $popular_skin_url = G5_SKIN_URL . '/popular/' . $skin_dir;
    }
    include_once $popular_skin_path . '/popular.skin.php';
    $content = ob_get_contents();
    ob_end_clean();
    return $content;
}
开发者ID:ned3y2k,项目名称:youngcart5,代码行数:27,代码来源:popular.lib.php


示例3: render

 public function render($template = null, array $arguments = null)
 {
     if (null === $template) {
         return false;
     }
     $parentTemplate = $this->currentTemplate;
     $this->currentTemplate = $this->totalTemplates = $this->totalTemplates + 1;
     $path = $this->finder->getPath($template);
     if (!is_file($path)) {
         throw new \RuntimeException('The requested view file doesn\'t exist in: <strong>' . $path . '</strong>', 404);
     }
     ob_start();
     try {
         $this->requireInContext($path, $arguments);
     } catch (\Exception $e) {
         ob_end_clean();
         throw $e;
     }
     if (isset($this->parent[$this->currentTemplate])) {
         $this->data['content'] = ob_get_contents();
         ob_end_clean();
         $this->render($this->parent[$this->currentTemplate], $arguments);
     } else {
         ob_end_flush();
     }
     if ($parentTemplate == 0) {
         $this->clean();
     } else {
         $this->currentTemplate = $parentTemplate;
     }
 }
开发者ID:hecrj,项目名称:sea_core,代码行数:31,代码来源:Engine.php


示例4: smarty_core_display_debug_console

/**
 * Smarty debug_console function plugin
 *
 * Type:     core<br>
 * Name:     display_debug_console<br>
 * Purpose:  display the javascript debug console window
 * @param array Format: null
 * @param Smarty
 */
function smarty_core_display_debug_console($params, &$smarty)
{
    // we must force compile the debug template in case the environment
    // changed between separate applications.
    if (empty($smarty->debug_tpl)) {
        // set path to debug template from SMARTY_DIR
        $smarty->debug_tpl = SMARTY_DIR . 'debug.tpl';
        if ($smarty->security && is_file($smarty->debug_tpl)) {
            $smarty->secure_dir[] = realpath($smarty->debug_tpl);
        }
        $smarty->debug_tpl = 'file:' . SMARTY_DIR . 'debug.tpl';
    }
    $_ldelim_orig = $smarty->left_delimiter;
    $_rdelim_orig = $smarty->right_delimiter;
    $smarty->left_delimiter = '{';
    $smarty->right_delimiter = '}';
    $_compile_id_orig = $smarty->_compile_id;
    $smarty->_compile_id = null;
    $_compile_path = $smarty->_get_compile_path($smarty->debug_tpl);
    if ($smarty->_compile_resource($smarty->debug_tpl, $_compile_path)) {
        ob_start();
        $smarty->_include($_compile_path);
        $_results = ob_get_contents();
        ob_end_clean();
    } else {
        $_results = '';
    }
    $smarty->_compile_id = $_compile_id_orig;
    $smarty->left_delimiter = $_ldelim_orig;
    $smarty->right_delimiter = $_rdelim_orig;
    return $_results;
}
开发者ID:SjayLiFe,项目名称:CTRev,代码行数:41,代码来源:core.display_debug_console.php


示例5: disable_ob

function disable_ob()
{
    // Turn off output buffering
    ini_set('output_buffering', 'off');
    // Turn off PHP output compression
    ini_set('zlib.output_compression', false);
    // Implicitly flush the buffer(s)
    ini_set('implicit_flush', true);
    ob_implicit_flush(true);
    // Clear, and turn off output buffering
    while (ob_get_level() > 0) {
        // Get the curent level
        $level = ob_get_level();
        // End the buffering
        ob_end_clean();
        // If the current level has not changed, abort
        if (ob_get_level() == $level) {
            break;
        }
    }
    // Disable apache output buffering/compression
    if (function_exists('apache_setenv')) {
        apache_setenv('no-gzip', '1');
        apache_setenv('dont-vary', '1');
    }
}
开发者ID:tomcbe,项目名称:cbp-transcription-desk,代码行数:26,代码来源:header.inc.php


示例6: b_wp_archives_monthly_show

 function b_wp_archives_monthly_show($options, $wp_num = "")
 {
     $block_style = $options[0] ? $options[0] : 0;
     $with_count = $options[1] == 0 ? false : true;
     global $wpdb, $siteurl, $wp_id, $wp_inblock, $use_cache;
     $id = 1;
     $use_cache = 1;
     if ($wp_num == "") {
         $wp_id = $wp_num;
         $wp_inblock = 1;
         require dirname(__FILE__) . '/../wp-config.php';
         $wp_inblock = 0;
     }
     ob_start();
     if ($block_style == 0) {
         // Simple Listing
         get_archives('monthly', '', 'html', '', '', $with_count);
     } else {
         // Dropdown Listing
         echo '<form name="archiveform' . $wp_num . '" action="">';
         echo '<select name="archive_chrono" onchange="window.location = (document.forms.archiveform' . $wp_num . '.archive_chrono[document.forms.archiveform' . $wp_num . '.archive_chrono.selectedIndex].value);"> ';
         echo '<option value="">' . _WP_BY_MONTHLY . '</option>';
         get_archives('monthly', '', 'option', '', '', $with_count);
         echo '</select>';
         echo '</form>';
     }
     $block['content'] = ob_get_contents();
     ob_end_clean();
     return $block;
 }
开发者ID:BackupTheBerlios,项目名称:nobunobuxoops-svn,代码行数:30,代码来源:wp_archives_monthly.php


示例7: doexport

 public function doexport()
 {
     $data = $this->getThisModel()->exportData();
     if ($data) {
         $json = json_encode($data);
         // Clear cache
         while (@ob_end_clean()) {
         }
         header("Pragma: public");
         header("Expires: 0");
         header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
         header("Cache-Control: public", false);
         // Send MIME headers
         header("Content-Description: File Transfer");
         header('Content-Type: json');
         header("Accept-Ranges: bytes");
         header('Content-Disposition: attachment; filename="admintools_settings.json"');
         header('Content-Transfer-Encoding: text');
         header('Connection: close');
         header('Content-Length: ' . strlen($json));
         echo $json;
         JFactory::getApplication()->close();
     } else {
         $this->setRedirect('index.php?option=com_admintools&view=importexport&task=export', JText::_('COM_ADMINTOOLS_IMPORTEXPORT_SELECT_DATA_WARN'), 'warning');
     }
 }
开发者ID:neoandrew1000,项目名称:crao_journal,代码行数:26,代码来源:importexports.php


示例8: DoIt

 public static function DoIt()
 {
     self::prepareHttpString();
     ob_start();
     try {
         $url = new BuUrl2(self::$httpString);
         bu::setBuUrlInstance($url);
         self::runController($url);
     } catch (Exception $e) {
         ob_end_clean();
         $msg = 'Ошибка на сайте';
         if (bu::config('rc/debug')) {
             $msg = get_class($e) . ': ' . $e->getMessage();
         }
         $content = $msg;
         if (bu::config('rc/debug')) {
             $content .= sprintf('<br><b>%s</b><br>', get_class($e));
             $content .= "<pre>";
             foreach (array_reverse($e->getTrace()) as $v) {
                 if (isset($v['line'])) {
                     $content .= $v['line'] . ' ' . $v['file'] . "\n";
                 }
             }
             $content .= "</pre>";
         }
         echo bu::view('layout/panic', array('content' => $content));
     }
 }
开发者ID:Bubujka,项目名称:bubujka.framework,代码行数:28,代码来源:bu_loader.php


示例9: background

 function background()
 {
     $this->im = imagecreatetruecolor($this->width, $this->height);
     $backgrounds = $c = array();
     if (!$this->background || !$backgrounds) {
         for ($i = 0; $i < 3; $i++) {
             $start[$i] = mt_rand(200, 255);
             $end[$i] = mt_rand(100, 150);
             $step[$i] = ($end[$i] - $start[$i]) / $this->width;
             $c[$i] = $start[$i];
         }
         for ($i = 0; $i < $this->width; $i++) {
             $color = imagecolorallocate($this->im, $c[0], $c[1], $c[2]);
             imageline($this->im, $i, 0, $i, $this->height, $color);
             $c[0] += $step[0];
             $c[1] += $step[1];
             $c[2] += $step[2];
         }
         $c[0] -= 20;
         $c[1] -= 20;
         $c[2] -= 20;
     }
     ob_start();
     if (function_exists('imagepng')) {
         imagepng($this->im);
     } else {
         imagejpeg($this->im, '', 100);
     }
     imagedestroy($this->im);
     $bgcontent = ob_get_contents();
     ob_end_clean();
     $this->fontcolor = $c;
     return $bgcontent;
 }
开发者ID:dotku,项目名称:shopnc_cnnewyork,代码行数:34,代码来源:seccode.php


示例10: printResult

 /**
  * @param \PHPUnit_Framework_TestResult $result
  */
 public function printResult(\PHPUnit_Framework_TestResult $result)
 {
     if ($this->runner->shouldNotify()) {
         ob_start();
     }
     $testDox = trim(TestDox::get(spl_object_hash($result)));
     if (strlen($testDox)) {
         $this->write(PHP_EOL . PHP_EOL . $testDox);
     }
     parent::printResult($result);
     if ($this->runner->shouldNotify()) {
         $output = ob_get_contents();
         ob_end_clean();
         echo $output;
         if ($result->failureCount() + $result->errorCount() + $result->skippedCount() + $result->notImplementedCount() == 0) {
             $notificationResult = Notification::RESULT_PASSED;
         } else {
             $notificationResult = Notification::RESULT_FAILED;
         }
         $output = $this->removeAnsiEscapeCodesForColors($output);
         if (preg_match('/(OK \\(\\d+ tests?, \\d+ assertions?\\))/', $output, $matches)) {
             $notificationMessage = $matches[1];
         } elseif (preg_match('/(FAILURES!)\\s+(.*)/', $output, $matches)) {
             $notificationMessage = $matches[1] . PHP_EOL . $matches[2];
         } elseif (preg_match('/(OK, but incomplete,.*!)\\s+(.*)/', $output, $matches)) {
             $notificationMessage = $matches[1] . PHP_EOL . $matches[2];
         } elseif (preg_match('/(No tests executed!)/', $output, $matches)) {
             $notificationMessage = $matches[1];
         } else {
             $notificationMessage = '';
         }
         $this->notification = new Notification($notificationResult, $notificationMessage);
     }
 }
开发者ID:piece,项目名称:stagehand-testrunner,代码行数:37,代码来源:ResultPrinter.php


示例11: outputContent

 /**
  * Output the content of the resource
  *
  * @param array $options An array of options for the output
  */
 public function outputContent(array $options = array())
 {
     if (empty($options['rpc_type'])) {
         $options['rpc_type'] = 'XML';
     }
     $resourceClass = 'mod' . $options['rpc_type'] . 'RPCResource';
     if (!$this->modx->resource instanceof $resourceClass) {
         $this->modx->log(modX::LOG_LEVEL_FATAL, 'Could not load ' . $options['rpc_type'] . '-RPC Server class.');
     }
     $this->modx->resource->process();
     $this->modx->resource->_output = $this->modx->resource->_content;
     /* collect any uncached element tags in the content and process them */
     $this->modx->getParser();
     $maxIterations = intval($this->modx->getOption('parser_max_iterations', null, 10));
     $this->modx->parser->processElementTags('', $this->modx->resource->_output, true, false, '[[', ']]', array(), $maxIterations);
     $this->modx->parser->processElementTags('', $this->modx->resource->_output, true, true, '[[', ']]', array(), $maxIterations);
     if (!$this->getServer()) {
         $this->modx->log(modX::LOG_LEVEL_FATAL, 'Could not load ' . $options['rpc_type'] . '-RPC Server.');
     }
     $this->server->service();
     ob_get_level() && @ob_end_flush();
     while (ob_get_level() && @ob_end_clean()) {
     }
     exit;
 }
开发者ID:ChrstnMgcn,项目名称:revolution,代码行数:30,代码来源:modxmlrpcresponse.class.php


示例12: render

 /**
  * Renders the page by injecting controller data inside a view template
  */
 public function render()
 {
     $viewFile = 'views/' . $this->name . '.php';
     if (!file_exists($viewFile)) {
         throw new Exception("view file [{$viewFile}] is missing");
     }
     // inject data and render template
     $this->buildPageData();
     extract($this->data);
     ob_start();
     if ((bool) ini_get('short_open_tag') === true) {
         include $viewFile;
     } else {
         $templateCode = file_get_contents($viewFile);
         $this->convertShortTags($templateCode);
         // Evaluating PHP mixed with HTML requires closing the PHP markup opened by eval()
         $templateCode = '?>' . $templateCode;
         echo eval($templateCode);
     }
     // get ouput
     $out = ob_get_contents();
     // get rid of buffer
     @ob_end_clean();
     return $out;
 }
开发者ID:telabotanica,项目名称:ezmlm-forum,代码行数:28,代码来源:BaseController.php


示例13: process_shortcode

 /**
  * Replace the default WordPress [gallery] shortcode with a slideshow
  *
  * @param array  $attrs
  * @param string $content
  */
 public function process_shortcode($params = array(), $content = null)
 {
     // Extract parameters and provide defaults for the missing ones
     extract(shortcode_atts(array('ids' => null, 'transition' => $this->plugin->get_option(BXSG_Settings::$OPTION_DEFAULT_TRANSITION), 'exclude_featured' => $this->plugin->get_option(BXSG_Settings::$OPTION_GS_EXCLUDE_FEATURED_IMAGE), 'hide_carousel' => $this->plugin->get_option(BXSG_Settings::$OPTION_GS_HIDE_CAROUSEL), 'adaptive_height' => $this->plugin->get_option(BXSG_Settings::$OPTION_GS_ADAPTIVE_HEIGHT), 'auto_start' => $this->plugin->get_option(BXSG_Settings::$OPTION_GS_AUTO_START), 'speed' => $this->plugin->get_option(BXSG_Settings::$OPTION_GS_SPEED), 'duration' => $this->plugin->get_option(BXSG_Settings::$OPTION_GS_DURATION), 'extra_options' => $this->plugin->get_option(BXSG_Settings::$OPTION_GS_EXTRA_OPTIONS), 'shuffle' => 0, 'size' => 'full', 'thumb_size' => 'thumbnail'), $params));
     // If no ids are provided, we will take every image attached to the current post.
     // Else, we'll simply fetch them from the DB
     $ids = $ids ? explode(',', $ids) : array();
     $attachments = $this->get_attached_medias($ids, $exclude_featured);
     if ($shuffle == 1) {
         shuffle($attachments);
     }
     // Compute an ID for this particular gallery
     $gallery_id = 'bx-gallery-' . $this->current_gallery_id;
     $this->current_gallery_id += 1;
     // Build the HTML output
     ob_start();
     include BXSG_INCLUDES_DIR . '/gallery-shortcode.view.php';
     $out = ob_get_contents();
     ob_end_clean();
     // We enqueue the script for inclusion in the WordPress footer
     ob_start();
     include BXSG_INCLUDES_DIR . '/gallery-shortcode.script.php';
     $this->scripts[] = ob_get_contents();
     ob_end_clean();
     return $out;
 }
开发者ID:kashifmsidd,项目名称:bxslider-integration,代码行数:32,代码来源:gallery-shortcode.class.php


示例14: init

 /**
  * Инициализация задачи
  *
  * @static
  * @param $code
  */
 private static function init($code)
 {
     joosRequest::send_headers_by_code($code);
     if (ob_get_level()) {
         ob_end_clean();
     }
 }
开发者ID:joostina,项目名称:joostina,代码行数:13,代码来源:pages.php


示例15: test_admin_panel_edit_user

 /**
  * @covers Starter\routers\RestRouter::admin_panel_edit_user
  */
 public function test_admin_panel_edit_user()
 {
     ob_start();
     $this->router->admin_panel_edit_user(1);
     ob_end_clean();
     self::assertNull(error_get_last());
 }
开发者ID:one-more,项目名称:peach_framework,代码行数:10,代码来源:RestRouterTest.php


示例16: render

 public function render($layout, $args = array())
 {
     // prevent render to recurse indefinitely
     static $count = 0;
     $count++;
     if ($count < self::MAX_RENDER_RECURSIONS) {
         // init vars
         $parts = explode($this->_separator, $layout);
         $this->_layout = preg_replace('/[^A-Z0-9_\\.-]/i', '', array_pop($parts));
         // render layout
         if ($__layout = JPath::find($this->_getPath(implode(DIRECTORY_SEPARATOR, $parts)), $this->_layout . $this->_extension)) {
             // import vars and layout output
             extract($args);
             ob_start();
             include $__layout;
             $output = ob_get_contents();
             ob_end_clean();
             $count--;
             return $output;
         }
         $count--;
         // raise warning, if layout was not found
         JError::raiseWarning(0, 'Renderer Layout "' . $layout . '" not found. (' . YUtility::debugInfo(debug_backtrace()) . ')');
         return null;
     }
     // raise warning, if render recurses indefinitly
     JError::raiseWarning(0, 'Warning! Render recursed indefinitly. (' . YUtility::debugInfo(debug_backtrace()) . ')');
     return null;
 }
开发者ID:bizanto,项目名称:Hooked,代码行数:29,代码来源:renderer.php


示例17: testPages

 public function testPages()
 {
     $pages = FannieAPI::listModules('FanniePage', true);
     $config = FannieConfig::factory();
     $logger = new FannieLogger();
     $op_db = $config->get('OP_DB');
     $dbc = FannieDB::get($op_db);
     $dbc->throwOnFailure(true);
     foreach ($pages as $page_class) {
         $obj = new $page_class();
         $obj->setConfig($config);
         $obj->setLogger($logger);
         $dbc->selectDB($op_db);
         $obj->setConnection($dbc);
         if ($page_class == 'WfcHtViewSalaryPage') {
             continue;
         }
         // header/redirect problem
         ob_start();
         $pre = $obj->preprocess();
         ob_end_clean();
         $this->assertInternalType('boolean', $pre);
         $help = $obj->helpContent();
         $this->assertInternalType('string', $help);
         $auth = $obj->checkAuth();
         $this->assertInternalType('boolean', $pre);
         $obj->unitTest($this);
     }
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:29,代码来源:PagesFannieTest.php


示例18: printStackTrace

 /**
  * Prints the stack trace for this exception.
  */
 public function printStackTrace()
 {
     if (null === $this->wrappedException) {
         $this->setWrappedException($this);
     }
     $exception = $this->wrappedException;
     if (!sfConfig::get('sf_test')) {
         // log all exceptions in php log
         error_log($exception->getMessage());
         // clean current output buffer
         while (ob_get_level()) {
             if (!ob_end_clean()) {
                 break;
             }
         }
         ob_start(sfConfig::get('sf_compressed') ? 'ob_gzhandler' : '');
         header('HTTP/1.0 500 Internal Server Error');
     }
     try {
         $this->outputStackTrace($exception);
     } catch (Exception $e) {
     }
     if (!sfConfig::get('sf_test')) {
         exit(1);
     }
 }
开发者ID:BGCX067,项目名称:fajr-svn-to-git,代码行数:29,代码来源:sfException.class.php


示例19: tc_post_content

        /**
         * The default template for displaying single post content
         *
         * @package Customizr
         * @since Customizr 3.0
         */
        function tc_post_content()
        {
            //check conditional tags : we want to show single post or single custom post types
            global $post;
            $tc_show_single_post_content = isset($post) && 'page' != $post->post_type && 'attachment' != $post->post_type && is_singular() && !tc__f('__is_home_empty');
            if (!apply_filters('tc_show_single_post_content', $tc_show_single_post_content)) {
                return;
            }
            //display an icon for div if there is no title
            $icon_class = in_array(get_post_format(), array('quote', 'aside', 'status', 'link')) ? apply_filters('tc_post_format_icon', 'format-icon') : '';
            ob_start();
            do_action('__before_content');
            ?>
    

          <section class="entry-content <?php 
            echo $icon_class;
            ?>
">
              <?php 
            the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'customizr'));
            ?>
              <?php 
            wp_link_pages(array('before' => '<div class="pagination pagination-centered">' . __('Pages:', 'customizr'), 'after' => '</div>'));
            ?>
          </section><!-- .entry-content -->

        <?php 
            do_action('__after_content');
            $html = ob_get_contents();
            if ($html) {
                ob_end_clean();
            }
            echo apply_filters('tc_post_content', $html);
        }
开发者ID:andrewfandrew,项目名称:bronze-boar,代码行数:41,代码来源:class-content-post.php


示例20: ckeditor_parse_php_info

/**
 * http://www.php.net/manual/en/function.phpinfo.php
 * code at adspeed dot com
 * 09-Dec-2005 11:31
 * This function parses the phpinfo output to get details about a PHP module.
 */
function ckeditor_parse_php_info()
{
    ob_start();
    phpinfo(INFO_MODULES);
    $s = ob_get_contents();
    ob_end_clean();
    $s = strip_tags($s, '<h2><th><td>');
    $s = preg_replace('/<th[^>]*>([^<]+)<\\/th>/', "<info>\\1</info>", $s);
    $s = preg_replace('/<td[^>]*>([^<]+)<\\/td>/', "<info>\\1</info>", $s);
    $vTmp = preg_split('/(<h2>[^<]+<\\/h2>)/', $s, -1, PREG_SPLIT_DELIM_CAPTURE);
    $vModules = array();
    for ($i = 1; $i < count($vTmp); $i++) {
        if (preg_match('/<h2>([^<]+)<\\/h2>/', $vTmp[$i], $vMat)) {
            $vName = trim($vMat[1]);
            $vTmp2 = explode("\n", $vTmp[$i + 1]);
            foreach ($vTmp2 as $vOne) {
                $vPat = '<info>([^<]+)<\\/info>';
                $vPat3 = "/{$vPat}\\s*{$vPat}\\s*{$vPat}/";
                $vPat2 = "/{$vPat}\\s*{$vPat}/";
                if (preg_match($vPat3, $vOne, $vMat)) {
                    // 3cols
                    $vModules[$vName][trim($vMat[1])] = array(trim($vMat[2]), trim($vMat[3]));
                } elseif (preg_match($vPat2, $vOne, $vMat)) {
                    // 2cols
                    $vModules[$vName][trim($vMat[1])] = trim($vMat[2]);
                }
            }
        }
    }
    return $vModules;
}
开发者ID:ckeditor-for-wordpress,项目名称:ckeditor-for-wordpress,代码行数:37,代码来源:overview.php



注:本文中的ob_end_clean函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ob_end_flush函数代码示例发布时间:2022-05-15
下一篇:
PHP ob_clear_open_buffers函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap