100+ results results for 'php array_pop repo:gencer/fluxbb' (308 ms)
1<?php 2 5 * 6 * Retrieved from http://code.google.com/p/php-amqplib/ 7 * 103 if($this->frame_queue != NULL) 104 return array_pop($this->frame_queue); 105 return $this->connection->wait_channel($this->channel_id); 244 * @version 1.3.2 245 * @author Aidan Lister <aidan@php.net> 246 * @author Peter Waller <iridum@php.net> 246 * @author Peter Waller <iridum@php.net> 247 * @link http://aidanlister.com/repos/v/function.hexdump.php 248 * @param string $data The string to be dumpedUrl.php https://gitlab.com/x33n/respond | PHP | 548 lines
1<?php 2 295 if ($segment == '..') { 296 array_pop($results); 297 } elseif ($segment != '.' && $segment != '') {compat.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 489 lines
2/** 3 * WordPress implementation for PHP functions either missing from older PHP versions or not included by default. 4 * 35 if ( 'reset' === $utf8_pcre ) { 36 // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged -- intentional error generated to detect PCRE/u support. 37 $utf8_pcre = @preg_match( '/^./u', 'a' ); 225 * 226 * The Hash extension is bundled with PHP by default since PHP 5.1.2. 227 * However, the extension may be explicitly disabled on select servers. 227 * However, the extension may be explicitly disabled on select servers. 228 * As of PHP 7.4.0, the Hash extension is a core PHP extension and can no 229 * longer be disabled. 303 * However, the Hash extension may be explicitly disabled on select servers. 304 * As of PHP 7.4.0, the Hash extension is a core PHP extension and can no 305 * longer be disabled.class-wp-terms-list-table.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 454 lines
1<?php 2/** 222 $num_parents = count( $my_parents ); 223 while ( $my_parent = array_pop( $my_parents ) ) { 224 echo "\t"; 298 if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) 299 $actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>"; 300 if ( $tax->public ) 331 332 /** This filter is documented in wp-admin/edit-tag-form.php */ 333 $out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>'; 343 function column_slug( $tag ) { 344 /** This filter is documented in wp-admin/edit-tag-form.php */ 345 return apply_filters( 'editable_slug', $tag->slug ); 366 if ( 'attachment' == $this->screen->post_type ) 367 return "<a href='" . esc_url ( add_query_arg( $args, 'upload.php' ) ) . "'>$count</a>"; 368AbstractFactory.php https://gitlab.com/yousafsyed/easternglamor | PHP | 342 lines
1<?php 2/** 53 { 54 $this->factoryContent = "<?php\n\n"; 55 $this->factoryContent .= "namespace Magento\Mtf\\{$type}; \n\n"; 93 94 $file = MTF_BP . "/generated/Magento/Mtf/{$type}/{$type}FactoryDeprecated.php"; 95 if (false === file_put_contents($file, $this->factoryContent)) { 139 * @return array 140 * @SuppressWarnings(PHPMD.NPathComplexity) 141 */ 151 152 while ($fallback = array_pop($fallbacks)) { 153 $path = isset($fallback['path']) ? $fallback['path'] : ''; 171 ), 172 '/.php$/i' 173 );DOMLex.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 279 lines
1<?php 2 3/** 4 * Parser that uses PHP 5's DOM extension (part of the core). 5 * 5 * 6 * In PHP 5, the DOM XML extension was revamped into DOM and added to the core. 7 * It gives us a forgiving HTML parser, which we use to transform the HTML 9 * documents, it performs twenty times faster than 10 * HTMLPurifier_Lexer_DirectLex,and is the default choice for PHP 5. 11 * 15 * 16 * @note PHP's DOM extension does not actually parse any entities, we use 17 * our own function to do that. 113 if ($level && isset($closingNodes[$level])) { 114 while ($node = array_pop($closingNodes[$level])) { 115 $this->createEndNode($node, $tokens);Migrator.php https://bitbucket.org/salimane/ruckusing-migrations.git | PHP | 324 lines
1<?php 2/** 75 // We only want one row but we cannot assume that we are using MySQL and use a LIMIT statement 76 // as it is not part of the SQL standard. Thus we have to select all rows and use PHP to return 77 // the record we need 136 if ($direction == 'down' && count($runnable) > 0 && $target != null) { 137 array_pop($runnable); 138 } 230 for ($i = 0; $i < $file_cnt; $i++) { 231 if (preg_match('/^(\d+)_(.*)\.php$/', $files[$i], $matches)) { 232 if (count($matches) == 3) { 247 $migration = $valid_files[$i]; 248 if (preg_match('/^(\d+)_(.*)\.php$/', $migration, $matches)) { 249 $files[] = array(Profiler.inc.php https://gitlab.com/nacridan/Nacridan | PHP | 244 lines
1<?php 2 107 $this->running[$name] += $this->elapsedTime($name); 108 $this->cur_timer = array_pop($this->stack); 109 $this->__resumeTimer($this->cur_timer);FlattenException.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 297 lines
1<?php 2 16/** 17 * FlattenException wraps a PHP Exception to be able to serialize it. 18 * 57/** 58 * FlattenException wraps a PHP Exception to be able to serialize it. 59 * 241 $parts = explode('\\', $entry['class']); 242 $class = array_pop($parts); 243 $namespace = implode('\\', $parts); 279 $result[$key] = array('resource', get_resource_type($value)); 280 } elseif ($value instanceof \__PHP_Incomplete_Class) { 281 // Special case of object, is_object will return false 290 291 private function getClassNameFromIncomplete(\__PHP_Incomplete_Class $value) 292 {Captcha.php https://gitlab.com/yousafsyed/easternglamor | PHP | 302 lines
1<?php 2/** 23/** @see Zend_Form_Element_Xhtml */ 24#require_once 'Zend/Form/Element/Xhtml.php'; 25 26/** @see Zend_Captcha_Adapter */ 27#require_once 'Zend/Captcha/Adapter.php'; 28 206 if (!isset($this->_loaders[$type])) { 207 #require_once 'Zend/Loader/PluginLoader.php'; 208 $this->_loaders[$type] = new Zend_Loader_PluginLoader( 291 array_unshift($segments, $root); 292 array_pop($segments); 293 $newContext = $context;Resource.php https://bitbucket.org/nblaudez/maerdo.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);Resource.php https://github.com/kwan26/VisualData.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);Resource.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23567 2010-12-20 08:12:16Z mjh_ca $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);history.php https://github.com/Yannix/ezpublish.git | PHP | 376 lines
1<?php 2/** 69 } 70 $newestVersion = array_pop( $selectableVersions ); 71 $previousVersion = array_pop( $selectableVersions );PwForumService.php https://gitlab.com/wuhang2003/phpwind | PHP | 279 lines
1<?php 2defined('WEKIT_VERSION') || exit('Forbidden'); 11 * @author Jianmin Chen <sky_hold@163.com> 12 * @license http://www.phpwind.com 13 * @version $Id: PwForumService.php 24758 2013-02-20 06:55:42Z jieyin $ 198 $array = explode(',', $forum['fup']); 199 return array_pop($array); 200 }lib.php https://github.com/tcubansk/moodle.git | PHP | 345 lines
1<?php 2 92 93 require_once($CFG->dirroot.'/mod/url/locallib.php'); 94 133 134 require_once($CFG->dirroot.'/mod/url/locallib.php'); 135 201 $numviews = count($logs); 202 $lastlog = array_pop($logs); 203 225 $numviews = count($logs); 226 $lastlog = array_pop($logs); 227 254 * 255 * See {@link get_array_of_activities()} in course/lib.php 256 *FlattenException.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 321 lines
1<?php 2 16/** 17 * FlattenException wraps a PHP Exception to be able to serialize it. 18 * 57/** 58 * FlattenException wraps a PHP Exception to be able to serialize it. 59 * 222 foreach ($trace as $i => $frame) { 223 // XDebug pre 2.1.1 doesn't currently set the call type key http://bugs.xdebug.org/view.php?id=695 224 if (!isset($frame['type'])) { 265 $parts = explode('\\', $entry['class']); 266 $class = array_pop($parts); 267 $namespace = implode('\\', $parts); 303 $result[$key] = array('resource', get_resource_type($value)); 304 } elseif ($value instanceof \__PHP_Incomplete_Class) { 305 // Special case of object, is_object will return falsePhpWriter.php https://gitlab.com/kubinos/writeoff | PHP | 393 lines
1<?php 2 11/** 12 * PHP code generator helpers. 13 */ 13 */ 14class PhpWriter extends Object 15{ 114 /** 115 * Formats macro arguments to PHP code. (It advances tokenizer to the end as a side effect.) 116 * @return string 126 /** 127 * Formats macro arguments to PHP array. (It advances tokenizer to the end as a side effect.) 128 * @return string 139 /** 140 * Formats parameter to PHP string. 141 * @param stringclass-wp-network.php https://gitlab.com/Fullerton/PolitePressCore | PHP | 408 lines
1<?php 2/** 327 $paths[] = '/' . implode( '/', $path_segments ) . '/'; 328 array_pop( $path_segments ); 329 }date.php https://github.com/chemila/kohana.git | PHP | 566 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 28 * Timezone for formatted_time 29 * @link http://uk2.php.net/manual/en/timezones.php 30 * @var string 39 * 40 * [!!] A list of time zones that PHP supports can be found at 41 * <http://php.net/timezones>. 371 // Only a single output was requested, return it 372 return array_pop($output); 373 } 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime stringlexer.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 393 lines
1<?php // $Id: lexer.php,v 1.1 2005/01/31 07:39:03 moodler Exp $ 2 2 3/* PHP lexer code snarfed from the CVS tree for the lamplib project at 4 * http://sourceforge.net/projects/lamplib 157 } 158 array_pop($this->_stack); 159 return true; 165 * Some optimisation to make the sure the 166 * content is only scanned by the PHP regex 167 * parser once. Lexer modes must not startCaptcha.php https://github.com/zf/ZendFramework-Library.git | PHP | 302 lines
1<?php 2/** 23/** @see Zend_Form_Element_Xhtml */ 24require_once 'Zend/Form/Element/Xhtml.php'; 25 26/** @see Zend_Captcha_Adapter */ 27require_once 'Zend/Captcha/Adapter.php'; 28 206 if (!isset($this->_loaders[$type])) { 207 require_once 'Zend/Loader/PluginLoader.php'; 208 $this->_loaders[$type] = new Zend_Loader_PluginLoader( 291 array_unshift($segments, $root); 292 array_pop($segments); 293 $newContext = $context;RecursiveIteratorIterator.php https://gitlab.com/iranjith4/hhvm | PHP | 403 lines
5 * ( excerpt from 6 * http://php.net/manual/en/class.recursiveiteratoriterator.php ) 7 * 39 * ( excerpt from 40 * http://php.net/manual/en/recursiveiteratoriterator.construct.php ) 41 * 102 * ( excerpt from 103 * http://php.net/manual/en/recursiveiteratoriterator.current.php ) 104 * 126 * ( excerpt from 127 * http://php.net/manual/en/recursiveiteratoriterator.next.php ) 128 * 223 * ( excerpt from 224 * http://php.net/manual/en/recursiveiteratoriterator.rewind.php ) 225 *Dispatcher.class.php https://gitlab.com/fangfangchen/xianpipa | PHP | 264 lines
31 unset($_GET[$varPath]); 32 }elseif(IS_CLI){ // CLI模式下 index.php module/controller/action/params/... 33 $_SERVER['PATH_INFO'] = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : ''; 149 if(is_file(MODULE_PATH.'Conf/alias.php')) 150 Think::addMap(include MODULE_PATH.'Conf/alias.php'); 151 152 // 加载模块函数文件 153 if(is_file(MODULE_PATH.'Common/function.php')) 154 include MODULE_PATH.'Common/function.php'; 161 if($urlMode == URL_COMPAT ){// 兼容模式判断 162 define('PHP_FILE',_PHP_FILE_.'?'.$varPath.'='); 163 }elseif($urlMode == URL_REWRITE ) { 168 }else { 169 define('PHP_FILE',_PHP_FILE_); 170 }install_steps.php https://gitlab.com/Rad1calDreamer/honey | PHP | 279 lines
3 4require_once("utils.php"); 5 25 26 CWizardUtil::ReplaceMacros($_SERVER["DOCUMENT_ROOT"].$templatePath."/include_areas/company_name.php", $arReplace); 27 47 $delete_after_copy = false, 48 $exclude = "description.php" 49 ); 124 $arServiceID = array_keys($arServices); 125 $lastService = array_pop($arServiceID); 126 $stepsCount = $arServices[$lastService]["POSITION"]; 183 $nextServiceID = $arServiceID[$serviceIndex+1]; 184 $nextServiceStage = "index.php"; 185 if (array_key_exists("STAGES", $arServices[$nextServiceID]) && is_array($arServices[$nextServiceID]["STAGES"]) && isset($arServices[$nextServiceID]["STAGES"][0]))logging.lib.php https://github.com/ssscrape/ssscrape.git | PHP | 429 lines
1<?php 2 128 global $anewt_logging_domain_stack; 129 return array_pop($anewt_logging_domain_stack); 130 }LoggerNDC.php https://github.com/kennethjiang/Wolke.git | PHP | 242 lines
24 */ 25if (!defined('LOG4PHP_DIR')) define('LOG4PHP_DIR', dirname(__FILE__)); 26 28 */ 29require_once(LOG4PHP_DIR . '/LoggerLog.php'); 30 128 129 return $GLOBALS['log4php.LoggerNDC.ht']; 130 } 160 if (sizeof($GLOBALS['log4php.LoggerNDC.ht']) > 0) { 161 return array_pop($GLOBALS['log4php.LoggerNDC.ht']); 162 } else { 235 if (LoggerNDC::getDepth() > $maxDepth) { 236 $GLOBALS['log4php.LoggerNDC.ht'] = array_slice($GLOBALS['log4php.LoggerNDC.ht'], $maxDepth); 237 }Config.php https://gitlab.com/matthww/Elywing | PHP | 462 lines
1<?php 2 122 $extension = explode(".", basename($this->file)); 123 $extension = strtolower(trim(array_pop($extension))); 124 if(isset(Config::$formats[$extension])){MY_Model.php https://github.com/JamieLomas/pyrocms.git | PHP | 662 lines
1<?php 2 353 $args =& func_get_args(); 354 $data = array_pop($args); 355 $this->_set_where($args);functions-load.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 389 lines
90 require ICL_PLUGIN_PATH . '/inc/request-handling/wpml-request.class.php'; 91 require ICL_PLUGIN_PATH . '/inc/request-handling/wpml-backend-request.class.php'; 92 require ICL_PLUGIN_PATH . '/inc/request-handling/wpml-frontend-request.class.php'; 127 if ( $url_type == 1 ) { 128 require ICL_PLUGIN_PATH . '/inc/url-handling/wpml-lang-subdir-converter.class.php'; 129 $dir_default = isset( $settings[ 'urls' ] ) && isset( $settings[ 'urls' ][ 'directory_for_default_language' ] ) 252 require ICL_PLUGIN_PATH . '/inc/wpml-post-edit-ajax.class.php'; 253 require ICL_PLUGIN_PATH . '/menu/wpml-post-status-display.class.php'; 254 require ICL_PLUGIN_PATH . '/inc/utilities/wpml-color-picker.class.php'; 333 334 if ( in_array( $pagenow, array( 'post.php', 'post-new.php', 'edit.php' ), true ) || defined( 'DOING_AJAX' ) 335 ) { 382 if ( ! isset( $wpml_term_filters_general ) ) { 383 require ICL_PLUGIN_PATH . '/inc/taxonomy-term-translation/wpml-term-filters.class.php'; 384 $wpml_term_filters_general = new WPML_Term_Filters( $wpdb, $sitepress );Config.php https://github.com/ireeps/agilebill.git | PHP | 401 lines
10 * the PHP License and are unable to obtain it through the web, please 11 * send a note to license@php.net so we can mail you a copy immediately. 12 * 17 * @copyright 1997-2005 The PHP Group 18 * @license http://www.php.net/license/3_0.txt PHP License 3.0 19 * @version CVS: $Id: Config.php,v 1.48 2005/09/24 04:25:33 cellog Exp $ 26 */ 27require_once 'PEAR/Command/Common.php'; 28 36 * @copyright 1997-2005 The PHP Group 37 * @license http://www.php.net/license/3_0.txt PHP License 3.0 38 * @version Release: 1.4.5 333 $config->noRegistry(); 334 $config->set('php_dir', $windows ? "$root\\pear\\php" : "$root/pear/php", 'user'); 335 $config->set('data_dir', $windows ? "$root\\pear\\data" : "$root/pear/data");f41babb4f2c3a39eeca91d858dad5a0a24e472b1.file.history.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 208 lines
34),false); /*/%%SmartyHeaderCode%%*/?> 35<?php if ($_valid && !is_callable('content_57c495cb3f2e57_05256894')) {function content_57c495cb3f2e57_05256894($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_regex_replace')) include 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\tools\\smarty\\plugins\\modifier.regex_replace.php'; 36?> 99?> 100 <tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) {?>first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) {?>last_item<?php } else { ?>item<?php }?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index']%2) {?>alternate_item<?php }?>"> 101 <td class="history_link bold"> 132 <?php if (isset($_smarty_tpl->tpl_vars['order']->value['order_state'])) {?> 133 <span class="label<?php if (isset($_smarty_tpl->tpl_vars['order']->value['order_state_color'])&&Tools::getBrightness($_smarty_tpl->tpl_vars['order']->value['order_state_color'])>128) {?> dark<?php }?>"<?php if (isset($_smarty_tpl->tpl_vars['order']->value['order_state_color'])&&$_smarty_tpl->tpl_vars['order']->value['order_state_color']) {?> style="background-color:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['order_state_color'], ENT_QUOTES, 'UTF-8', true);?> 134; border-color:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['order_state_color'], ENT_QUOTES, 'UTF-8', true);?> 164 <a class="link-button" href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']);?> 165<?php $_tmp7=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-opc',true,null,"submitReorder&id_order=".$_tmp7), ENT_QUOTES, 'UTF-8', true);?> 166" title="<?php echo smartyTranslate(array('s'=>'Reorder'),$_smarty_tpl);?> 168 <?php } else { ?> 169 <a class="link-button" href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']);?> 170<?php $_tmp8=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order',true,null,"submitReorder&id_order=".$_tmp8), ENT_QUOTES, 'UTF-8', true);?>iCalendar.php https://gitlab.com/rsilveira1987/Expresso | PHP | 137 lines
1<?php 2/** 54 // end component, pop the stack 55 $child = array_pop($stack); 56 if (empty($stack)) {PhpRedisConnection.php https://gitlab.com/madwanz64/laravel | PHP | 557 lines
1<?php 2 14 */ 15class PhpRedisConnection extends Connection implements ConnectionContract 16{ 31 /** 32 * Create a new PhpRedis connection. 33 * 212 if (is_array(end($dictionary))) { 213 foreach (array_pop($dictionary) as $member => $score) { 214 $dictionary[] = $score;ModulesTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 217 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: ModulesTest.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 22 23if (!defined('PHPUnit_MAIN_METHOD')) { 24 define('PHPUnit_MAIN_METHOD', 'Zend_Application_Resource_ModulesTest::main'); 29 */ 30require_once 'Zend/Loader/Autoloader.php'; 31 39 */ 40class Zend_Application_Resource_ModulesTest extends PHPUnit_Framework_TestCase 41{ 43 { 44 $suite = new PHPUnit_Framework_TestSuite(__CLASS__); 45 $result = PHPUnit_TextUI_TestRunner::run($suite);collection.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 264 lines
1<?php 2/** 191 { 192 array_pop($this->stack); 193 switch ($name) 198 $this->pop_parent = 0; 199 array_pop($this->parent); 200 }index.php https://github.com/CORE-POS/IS4C.git | PHP | 238 lines
1<?php 2include('../../../config.php'); 2include('../../../config.php'); 3require(__DIR__ . '/../../../auth/login.php'); 4 7 8if (!class_exists("SQLManager")) require_once(__DIR__ . "/../../../src/SQLManager.php"); 9 9 10include('../../db.php'); 11$ms = $sql; 11$ms = $sql; 12include(__DIR__ . '/../../../src/Credentials/OutsideDB.data1.wfc.php'); 13 23 echo "<th>Origin</th><th colspan=2>Case Size</th><th>Case Price</th>"; 24 echo "<form action=index.php method=post>"; 25 while (!feof($fp)){ShowProcessor.php https://gitlab.com/staging06/myproject | PHP | 166 lines
1<?php 2/** 2/** 3 * ShowProcessor.php 4 * 32 33require_once(dirname(__FILE__) . '/../utils/PHPSQLParserConstants.php'); 34require_once(dirname(__FILE__) . '/../utils/ExpressionType.php'); 34require_once(dirname(__FILE__) . '/../utils/ExpressionType.php'); 35require_once(dirname(__FILE__) . '/LimitProcessor.php'); 36require_once(dirname(__FILE__) . '/AbstractProcessor.php'); 117 case 'LIMIT': 118 $limit = array_pop($resultList); 119 $limit['sub_tree'] = $this->limitProcessor->process(array_slice($tokens, $k)); 138 case 'FUNCTION': 139 if (PHPSQLParserConstants::isAggregateFunction($upper)) { 140 $expr_type = ExpressionType::AGGREGATE_FUNCTION;class.php https://gitlab.com/neuser/bitrix-core | PHP | 658 lines
1<?php 2if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die(); 12 13require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/wizard.php"); //Wizard API 14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/install/wizard/utils.php"); //Wizard utils 14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/install/wizard/utils.php"); //Wizard utils 15require_once("tools/bsmpackage.php"); 16require_once("tools/modulechecker.php"); 16require_once("tools/modulechecker.php"); 17require_once("tools/bitrixvmchecker.php"); 18require_once("tools/agentchecker.php"); 18require_once("tools/agentchecker.php"); 19require_once("tools/pushchecker.php"); 20require_once("tools/sitepatcher.php"); 149 { 150 /** @noinspection PhpVariableNamingConventionInspection */ 151 global $APPLICATION;Router.php https://gitlab.com/digitalpoetry/catt-old | PHP | 293 lines
1<?php 2/** 96 * This function matches any routes that may exist in 97 * the config/routes.php file against the URI to 98 * determine if the class/method need to be remapped. 114 foreach ($this->config->item('modules_locations') as $location) { 115 if (is_file($file = $location . $module . '/config/routes.php')) { 116 include ($file); 150 151 if ( ! file_exists(APPPATH.'controllers/'.$test.'.php') && is_dir(APPPATH.'controllers/'.$this->directory.$s[0])) 152 { 155 } 156 elseif (file_exists(APPPATH .'controllers/'. $test .'.php')) 157 { 174 $relative = str_replace(implode('/', $parts) . '/', str_repeat('../', $i), $relative, $count); 175 array_pop($parts); 176interview1.php https://github.com/pennsong/ShiyishiWeb.git | PHP | 185 lines
1<?php 2 85 if(!empty($vodrooms)){ 86 $info['room'] = array_pop($vodrooms); 87 $info['passtime'] = date("Y-m-d H:i:s");ezfile.php https://github.com/eeggenberger/ezpublish.git | PHP | 315 lines
1<?php 2/** 11/*! 12 \class eZFile ezfile.php 13 \ingroup eZUtils 137 $parts = explode( '.', $filename); 138 return array_pop( $parts ); 139 } 151 152 /* PHP function is_writable() doesn't work correctly on Windows NT descendants. 153 * So we have to use the following hack on those OSes. 175 /* On windows we need to unlink the destination file first */ 176 if ( strtolower( substr( PHP_OS, 0, 3 ) ) == 'win' ) 177 {CoreMacros.php https://bitbucket.org/iiic/iszp.git | PHP | 413 lines
73 $me->addMacro('debugbreak', array($me, 'macroDebugbreak')); 74 $me->addMacro('l', '?>{<?php'); 75 $me->addMacro('r', '?>}<?php'); 110 */ 111 public function macroIf(MacroNode $node, PhpWriter $writer) 112 { 211 */ 212 public function macroCapture(MacroNode $node, PhpWriter $writer) 213 { 241 . preg_replace('#(.*)\s+as\s+#i', '$1) as ', $writer->formatArgs(), 1) . '): ?>'; 242 $node->closingCode = '<?php $iterations++; endforeach; array_pop($_l->its); $iterator = end($_l->its) ?>'; 243 } else { 296 */ 297 public function macroDebugbreak(MacroNode $node, PhpWriter $writer) 298 {class-wp-terms-list-table.php https://github.com/terry69/fluxflex_wordpress.git | PHP | 379 lines
1<?php 2/** 308 if ( $count ) 309 $count = "<a href='link-manager.php?cat_id=$tag->term_id'>$count</a>"; 310 return $count; 331 <form method="get" action=""><table style="display: none"><tbody id="inlineedit"> 332 <tr id="inline-edit" class="inline-edit-row" style="display: none"><td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange"> 333 347 </div></fieldset> 348 <?php 349 363 <p class="inline-edit-save submit"> 364 <a accesskey="c" href="#inline-edit" title="<?php _e( 'Cancel' ); ?>" class="cancel button-secondary alignleft"><?php _e( 'Cancel' ); ?></a> 365 <?php $update_text = $tax->labels->update_item; ?> 365 <?php $update_text = $tax->labels->update_item; ?> 366 <a accesskey="s" href="#inline-edit" title="<?php echo esc_attr( $update_text ); ?>" class="save button-primary alignright"><?php echo $update_text; ?></a> 367 <img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />KLogger.php https://github.com/denheck/KLogger.git | PHP | 395 lines
1<?php 2 98 /** 99 * Valid PHP date() format string for log timestamps 100 * @var string 211 { 212 return array_pop($this->_messageQueue); 213 }ObjectDecorator.php https://github.com/thewiredman/symfony.git | PHP | 119 lines
1<?php 2 24 /** 25 * Magic PHP method that intercepts method calls, calls them on the objects 26 * that is being escaped and escapes the result. 51 52 array_pop($args); 53 } else {sfValidatorFromDescription.class.php https://github.com/bheneka/gitta.git | PHP | 387 lines
1<?php 2 36 /** 37 * Returns a PHP representation for the validator. 38 * 38 * 39 * This PHP representation can be evaled to return the object validator. 40 * 42 * 43 * @return string The PHP representation for the validator 44 */ 44 */ 45 public function asPhp() 46 { 46 { 47 return $this->reduceTokens($this->tokens, 'asPhp'); 48 }RcptCommand.php https://github.com/peci1/nSMTPMailer.git | PHP | 285 lines
1<?php 2 126 127 $recipient = array_pop($this->recipients); 128RemoteAddress.php https://gitlab.com/jalon/doadoronline | PHP | 172 lines
1<?php 2/** 9 10namespace Zend\Http\PhpEnvironment; 11 148 // @see http://en.wikipedia.org/wiki/X-Forwarded-For 149 $ip = array_pop($ips); 150 return $ip;questiontype.php https://github.com/nadavkav/RTL-BIDI-Hebrew-Moodle-Plugins.git | PHP | 350 lines
1<?php 2/** 22// include library routines for this question type 23//require_once(dirname(__FILE__) . '/locallib.php'); 24 147 // the directory is two levels deep, so delete the lower directory, too 148 array_pop($dirparts); 149 $dir = implode('/', $dirparts); 161 global $CFG; 162 require_once($CFG->libdir.'/formslib.php'); 163 281 * 282 * This is used in question/backuplib.php 283 */ 306 * 307 * This is used in question/restorelib.php 308 */notes.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 184 lines
1<?php 2 58 // on redepile tout suite a une fin d'inclusion ou d'un affichage des notes 59 list($les_notes, $compt_note, $notes_vues, $marqueur) = array_pop($pile); 60 #$les_notes .= $prev_notes;index.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 144 lines
1<?php // $Id$ 2 // Displays different views of the logs. 3 4 require_once('../../../config.php'); 5 require_once('../../lib.php'); 5 require_once('../../lib.php'); 6 require_once('lib.php'); 7 require_once($CFG->libdir.'/adminlib.php'); 40 } else { 41 $course_stub = array_pop(get_records_select('mnet_log', " hostid='$hostid' AND course='$id' ", '', '*', '', '1')); 42 $course->id = $id; 51 52 add_to_log($course->id, "course", "report log", "report/log/index.php?id=$course->id", $course->id); 53 82 } else { 83 $navlinks[] = array('name' => $strreports, 'link' => "$CFG->wwwroot/course/report.php?id=$course->id", 'type' => 'misc'); 84 $navlinks[] = array('name' => $strlogs, 'link' => "index.php?id=$course->id", 'type' => 'misc');Compass.php https://github.com/vivid-planet/library.git | PHP | 511 lines
1<?php 2require_once dirname(__FILE__) . '/../ExtensionInterface.php'; 93 while (sizeof($directories)) { 94 $dir = array_pop($directories); 95 if ($handle = opendir($dir)) { 212 213 $ext = array_pop(explode('.', $file)); 214 if (isset($mimes[$ext])) { 268 $args = func_get_args(); 269 $place = array_pop($args); 270 $list = array(); 314 $args = func_get_args(); 315 $end = array_pop($args); 316 $start = array_pop($args); 375 $args = func_get_args(); 376 $output = explode(',', array_pop($args)); 377lmbFs.class.php https://github.com/limb-php-framework/limb-app-buildman.git | PHP | 543 lines
1<?php 2/** 8 * @license LGPL http://www.gnu.org/copyleft/lesser.html 9 * @version $Id: lmbFs.class.php 5009 2007-02-08 15:37:31Z pachanga $ 10 * @package util 12//inspired by EZpublish(http://ez.no), Dir class 13lmb_require(dirname(__FILE__) . '/lmbSys.class.php'); 14lmb_require('limb/util/src/exception/lmbIOException.class.php'); 123 124 array_pop($path_elements); 125 } 161 if(sizeof($dir_elements) > 1 && $dir_elements[sizeof($dir_elements)-1] === '') 162 array_pop($dir_elements); 163 358 count($newpath_elements) > 0) 359 array_pop($newpath_elements); 360 elseForumHolderTest.php https://github.com/lenix/silverstripe-forum.git | PHP | 159 lines
1<?php 2 143 // set the last post ID (test the first post - so there should be a post, last post (false)) 144 $lastPostID = array_pop($this->allFixtureIDs('Post')); 145SetParser.php https://github.com/JeCat/framework.git | PHP | 144 lines
1<?php 2//////////////////////////////////////////////////////////////////////////////////////////////////////////// 2//////////////////////////////////////////////////////////////////////////////////////////////////////////// 3// 这个文件是 JeCat PHP框架的一部分,该项目和此文件 均遵循 GNU 自由软件协议 4// 7// 8// JeCat PHP框架 的正式全名是:Jellicle Cat PHP Framework。 9// “Jellicle Cat”出自 Andrew Lloyd Webber的音乐剧《猫》(《Prologue:Jellicle Songs for Jellicle Cats》)。 9// “Jellicle Cat”出自 Andrew Lloyd Webber的音乐剧《猫》(《Prologue:Jellicle Songs for Jellicle Cats》)。 10// JeCat 是一个开源项目,它像音乐剧中的猫一样自由,你可以毫无顾忌地使用JCAT PHP框架。JCAT 由中国团队开发维护。 11// 正在使用的这个版本是:0.7.1 72 } 73 array_pop($aParseState->arrTree) ; 74 $aParseState->arrTree[$sClm] =& $arrAssignmentToken ;FormRenderer.php https://gitlab.com/cuza/Clinic_Recods | PHP | 309 lines
1<?php 2 141 // Clear the stack 142 array_pop($this->variableStack[$viewCacheKey]); 143 282 // Clear the stack 283 array_pop($this->variableStack[$viewCacheKey]); 284ContainerTest.php https://github.com/duoduo/zf2.git | PHP | 450 lines
1<?php 2/** 23// Call Zend_View_Helper_Placeholder_Container_AbstractTest::main() if this source file is executed directly. 24if (!defined("PHPUnit_MAIN_METHOD")) { 25 define("PHPUnit_MAIN_METHOD", "Zend_View_Helper_Placeholder_ContainerTest::main"); 41 */ 42class Zend_View_Helper_Placeholder_ContainerTest extends PHPUnit_Framework_TestCase 43{ 56 57 $suite = new PHPUnit_Framework_TestSuite("Zend_View_Helper_Placeholder_ContainerTest"); 58 $result = PHPUnit_TextUI_TestRunner::run($suite); 225 $keys = array_keys($value); 226 $lastIndex = array_pop($keys); 227 $this->assertEquals('foo', $value[$lastIndex - 1]); 396 $value = $this->container->toString(); 397 $expectedValue = ' <ul><li>foo</li>' . PHP_EOL . ' <li>bar</li>' . PHP_EOL . ' <li>baz</li></ul>'; 398 $this->assertEquals($expectedValue, $value);HTML.php https://bitbucket.org/crowdguru/phpexcel.git | PHP | 495 lines
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 149 // Create new PHPExcel 150 $objPHPExcel = new PHPExcel(); 151 430 /** 431 * Loads PHPExcel from file into PHPExcel instance 432 * 433 * @param string $pFilename 434 * @param PHPExcel $objPHPExcel 435 * @return PHPExcel 437 */ 438 public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) 439 {smarty_internal_compile_private_block_plugin.php https://gitlab.com/milutinke97/Controlify | PHP | 89 lines
1<?php 2/** 33 * @param string $tag name of block plugin 34 * @param string $function PHP function name 35 * 62 // compile code 63 $output = "<?php \$_smarty_tpl->smarty->_cache['tag_stack'][] = array('{$tag}', {$_params}); \$_block_repeat=true; echo {$function}({$_params}, null, \$_smarty_tpl, \$_block_repeat);while (\$_block_repeat) { ob_start();?>"; 64 } else { 81 } 82 $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false;" . $mod_pre . 83 " echo {$function}({$_params}, \$_block_content, \$_smarty_tpl, \$_block_repeat); " . $mod_post . 83 " echo {$function}({$_params}, \$_block_content, \$_smarty_tpl, \$_block_repeat); " . $mod_post . 84 " } array_pop(\$_smarty_tpl->smarty->_cache['tag_stack']);?>"; 85 }database.php https://github.com/memonews/ymc-components.git | PHP | 483 lines
1<?php 2 139 // There can be only one result row 140 $result = array_pop( $result ); 141Post.php https://github.com/milesj/forum.git | PHP | 397 lines
1<?php 2/** 4 * @license https://github.com/milesj/admin/blob/master/license.md 5 * @link http://milesj.me/code/cakephp/admin 6 */ 153 if ($posts = $this->Session->read('Forum.posts')) { 154 $timeLeft = time() - array_pop($posts); 155Resource.php https://gitlab.com/Ltaimao/wecenter | PHP | 472 lines
1<?php 2/** 23/** Zend_Loader_Autoloader_Interface */ 24//require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 //require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 //require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 //require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace); 119 if (!$this->hasResourceType($type)) { 120 //require_once 'Zend/Loader/Exception.php'; 121 throw new Zend_Loader_Exception("Invalid resource type $type; cannot load resource");ReedSolomonCodec.php https://gitlab.com/jjpa2018/dashboard | PHP | 468 lines
1<?php 2declare(strict_types = 1); 312 array_unshift($tmp, $this->blockSize); 313 array_pop($tmp); 314 $b = SplFixedArray::fromArray($tmp, false); 340 array_unshift($tmp, $this->blockSize); 341 array_pop($tmp); 342 $b = SplFixedArray::fromArray($tmp, false);Layout.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 126 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 109 110 $currentHandle = array_pop($appliedHandles); 111FilesHandler.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 172 lines
1<?php 2 3/** 4 * @file FilesHandler.inc.php 5 * 14 15// $Id: FilesHandler.inc.php,v 1.21 2009/05/12 15:59:30 asmecher Exp $ 16 145 $currentDir = join($pathArray, '/'); 146 array_pop($pathArray); 147 $parentDir = join($pathArray, '/');xajaxArgumentManager.inc.php https://github.com/sarriaroman/PuntoUBP.git | PHP | 466 lines
1<?php 2/* 2/* 3 File: xajaxArgumentManager.inc.php 4 8 9 Please see <copyright.inc.php> for a detailed description, copyright 10 and license information. 14 @package xajax 15 @version $Id: xajaxArgumentManager.inc.php 362 2007-05-29 15:32:24Z calltoconstruct $ 16 @copyright Copyright (c) 2005-2007 by Jared White & J. Max Wilson 30 will be processed. During a xajax request, any arguments found in the 31 GET or POST will be converted to a PHP array. 32*/ 190 $mValue = $aArg; 191 $sKey = array_pop($aStack); 192 $aArg = array_pop($aStack);QueryParserContext.php https://github.com/StefanRHRO/SCRM.git | PHP | 401 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: QueryParserContext.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 23/** Zend_Search_Lucene_Search_QueryToken */ 24require_once 'Zend/Search/Lucene/Search/QueryToken.php'; 25 143 if ($this->_mode === self::GM_BOOLEAN) { 144 require_once 'Zend/Search/Lucene/Search/QueryParserException.php'; 145 throw new Zend_Search_Lucene_Search_QueryParserException('It\'s not allowed to mix boolean and signs styles in the same subquery.'); 154 } else { 155 require_once 'Zend/Search/Lucene/Exception.php'; 156 throw new Zend_Search_Lucene_Exception('Unrecognized sign type.'); 187 if ($this->_nextEntryField !== null || $this->_nextEntrySign !== null) { 188 require_once 'Zend/Search/Lucene/Search/QueryParserException.php'; 189 throw new Zend_Search_Lucene_Search_QueryParserException('\'~\' modifier must follow word or phrase.');Stopwatch.php https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB | PHP | 332 lines
1<?php 2 74 75 $this->sections[$id] = array_pop($this->activeSections)->setId($id); 76 $this->stop('__section__.child');fabriquer_plugin_actions.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 380 lines
1<?php 2 63 $noms = explode('-', $nom); 64 $j = substr(array_pop($noms), 5); // enlever 'objetX-champ' de 'objet1-champ2' 65 $new_champs[] = $data['objets'][$i]['champs'][$j]; 239 $ext = explode('.', $fichier); 240 $ext = array_pop($ext); 241 $tmp_name = $_FILES[$type]['tmp_name']; 290 $date = date("Y-m-d H-i-s"); 291 $base = basename($fichier, '.php'); 292 $copie = $base . ' ' . $date . '.php'; 295 new RegexIterator( 296 new DirectoryIterator($destination), '/fabrique_' . substr($base, 9) . '.*\.php$/'); 297 // trier par date les fichiers 330 $fdiff = new Fdiff($ancien, $nouveau); 331 $fdiff->add_ignorer(array("fabrique_diff.diff", "fabrique_".$prefixe.".php")); 332 $tab = $fdiff->get_diff();ImageFieldDefaultImagesTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 294 lines
1<?php 2 57 foreach (['field_storage', 'field', 'field2', 'field_storage_new', 'field_new', 'field_storage_private', 'field_private'] as $image_target) { 58 $file = File::create((array) array_pop($files)); 59 $file->save();Validator.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 206 lines
1<?php 2 39 $this->aliases = array(); 40 // PHP is a bit lax with integer <=> string conversions in 41 // arrays, so we don't use the identical !== comparison 64 ->assertIsString(); // implicit assertIsString handled by InterchangeBuilder 65 array_pop($this->context); 66 } 104 105 array_pop($this->context); 106 } 123 } 124 array_pop($this->context); 125 } 151 } 152 array_pop($this->context); 153 }ModulesTest.php https://github.com/christophervalles/Zend-Framework-Skeleton.git | PHP | 217 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: ModulesTest.php 24227 2011-07-12 19:41:46Z matthew $ 21 */ 22 23if (!defined('PHPUnit_MAIN_METHOD')) { 24 define('PHPUnit_MAIN_METHOD', 'Zend_Application_Resource_ModulesTest::main'); 29 */ 30require_once 'Zend/Loader/Autoloader.php'; 31 39 */ 40class Zend_Application_Resource_ModulesTest extends PHPUnit_Framework_TestCase 41{ 43 { 44 $suite = new PHPUnit_Framework_TestSuite(__CLASS__); 45 $result = PHPUnit_TextUI_TestRunner::run($suite);NodeType.php https://gitlab.com/geeta7/drupal | PHP | 127 lines
1<?php 2 100 $bundles = $this->configuration['bundles']; 101 $last = array_pop($bundles); 102 $bundles = implode(', ', $bundles);ROC.php https://github.com/bluelovers/Scophp.git | PHP | 192 lines
1<?php 2 101 //建立隨機身份證碼 102 $id = $city . $gender . array_pop(explode('.', uniqid(rand(), true))); 103class-wp-customize-setting.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 439 lines
1<?php 2/** 289 290 $last = array_pop( $keys ); 291 $node = &$root;QueryParserContext.php https://github.com/kervin/kyzstudio.git | PHP | 401 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: QueryParserContext.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 23/** Zend_Search_Lucene_Search_QueryToken */ 24#require_once 'Zend/Search/Lucene/Search/QueryToken.php'; 25 143 if ($this->_mode === self::GM_BOOLEAN) { 144 #require_once 'Zend/Search/Lucene/Search/QueryParserException.php'; 145 throw new Zend_Search_Lucene_Search_QueryParserException('It\'s not allowed to mix boolean and signs styles in the same subquery.'); 154 } else { 155 #require_once 'Zend/Search/Lucene/Exception.php'; 156 throw new Zend_Search_Lucene_Exception('Unrecognized sign type.'); 187 if ($this->_nextEntryField !== null || $this->_nextEntrySign !== null) { 188 #require_once 'Zend/Search/Lucene/Search/QueryParserException.php'; 189 throw new Zend_Search_Lucene_Search_QueryParserException('\'~\' modifier must follow word or phrase.');Resource.php https://bitbucket.org/valmy/openx.git | PHP | 436 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 14026 2009-02-09 19:03:22Z matthew $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 115 if (!$this->hasResourceType($type)) { 116 require_once 'Zend/Loader/Exception.php'; 117 throw new Zend_Loader_Exception("Invalid resource type $type; cannot load resource");atomlib.php https://gitlab.com/webkod3r/tripolis | PHP | 363 lines
1<?php 2/** 2/** 3 * Atom Syndication Format PHP Library 4 * 5 * @package AtomLib 6 * @link http://code.google.com/p/phpatomlib/ 7 * 84 85 var $FILE = "php://input"; 86 90 /** 91 * PHP5 constructor. 92 */ 101 /** 102 * PHP4 constructor. 103 */Cache.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 416 lines
1<?php 2/* 2/* 3 * $Id: Cache.php 5798 2009-06-02 15:10:46Z piccoloprincipe $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @link www.phpdoctrine.org 179 { 180 return array_pop($this->_queries); 181 }CalculatorService.php https://gitlab.com/emmaelboristayot/sidexa | PHP | 121 lines
1<?php 2 49 while (!empty($operStack)) { 50 $oper = array_pop($operStack); 51 if ('(' == $oper) { 60 while (!empty($operStack) && '(' != $char) { 61 $oper = array_pop($operStack); 62 if ($operPriority[$char] > $operPriority[$oper]) { 83 if (!empty($operStack)) { 84 while ($oper = array_pop($operStack)) { 85 if ('(' == $oper) { 95 case '+': 96 $arg2 = array_pop($calcStack); 97 $arg1 = array_pop($calcStack); 100 case '-': 101 $arg2 = array_pop($calcStack); 102 $arg1 = array_pop($calcStack);BaseTest.php git://github.com/manuelpichler/staticReflection.git | PHP | 347 lines
1<?php 2/** 4 * 5 * PHP Version 5 6 * 38 * 39 * @category PHP 40 * @package pdepend\reflection 42 * @copyright 2009-2011 Manuel Pichler. All rights reserved. 43 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 44 * @version SVN: $Id$ 52 * 53 * @category PHP 54 * @package pdepend\reflection 56 * @copyright 2009-2011 Manuel Pichler. All rights reserved. 57 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 58 * @version Release: @package_version@XmlToAppData.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 409 lines
1<?php 2 3/* 4 * $Id: XmlToAppData.php 1262 2009-10-26 20:54:39Z francois $ 5 * 19 * and is licensed under the LGPL. For more information please see 20 * <http://propel.phpdb.org>. 21 */ 22 23include_once 'propel/engine/database/model/AppData.php'; 24 25// Phing dependencies 26require_once 'phing/parser/AbstractHandler.php'; 27include_once 'phing/system/io/FileReader.php'; 30 * A class that is used to parse an input xml schema file and creates an AppData 31 * PHP object. 32 *lib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 257 lines
1<?php 2require_once($CFG->libdir.'/portfolio/plugin.php'); 2require_once($CFG->libdir.'/portfolio/plugin.php'); 3require_once($CFG->libdir.'/filelib.php'); 4require_once($CFG->libdir.'/boxlib.php'); 41 $returnid = array_keys($return['id']); 42 $this->rename_file($return['id'][array_pop($returnid)], $file->get_filename()); 43 // if this fails, the file was sent but not renamed - this triggers a warning but is not fatal. 116 $a->servicesurl = 'http://www.box.net/developers/services'; 117 $a->callbackurl = $CFG->wwwroot . '/portfolio/add.php?postcontrol=1&type=boxnet'; 118 $mform->addElement('static', 'setupinfo', get_string('setupinfo', 'portfolio_boxnet'), 215 } else { 216 $suffix = '.' . array_pop($bits); 217 $prefix = implode('.', $bits);%%B2^B29^B29CC4AC%%submissionsInEditing.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 72 lines
2 compiled from sectionEditor/submissionsInEditing.tpl */ ?> 3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); 4smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'sectionEditor/submissionsInEditing.tpl', 15, false),array('function', 'page_info', 'sectionEditor/submissionsInEditing.tpl', 54, false),array('function', 'page_links', 'sectionEditor/submissionsInEditing.tpl', 55, false),array('block', 'iterate', 'sectionEditor/submissionsInEditing.tpl', 26, false),array('modifier', 'date_format', 'sectionEditor/submissionsInEditing.tpl', 33, false),array('modifier', 'escape', 'sectionEditor/submissionsInEditing.tpl', 34, false),array('modifier', 'truncate', 'sectionEditor/submissionsInEditing.tpl', 35, false),array('modifier', 'default', 'sectionEditor/submissionsInEditing.tpl', 37, false),)), $this); ?> 33 <tr valign="top"> 34 <td><?php echo $this->_tpl_vars['submission']->getArticleId(); ?> 35</td> 37</td> 38 <td><?php echo ((is_array($_tmp=$this->_tpl_vars['submission']->getSectionAbbrev())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?> 39</td> 53 <tr> 54 <td colspan="8" class="<?php if ($this->_tpl_vars['submissions']->eof()): ?>end<?php endif; ?>separator"> </td> 55 </tr> 55 </tr> 56<?php $_block_content = ob_get_contents(); ob_end_clean(); echo $this->_plugins['block']['iterate'][0][0]->smartyIterate($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat=false); } array_pop($this->_tag_stack); if ($this->_tpl_vars['submissions']->wasEmpty()): ?> 57 <tr>smarty_internal_compile_include.php https://github.com/raphaelbastide/berta.git | PHP | 155 lines
1<?php 2 52 // merge filedependency by evaluating header code 53 preg_match_all("/(<\?php \/\*%%SmartyHeaderCode:{$tpl->properties['nocache_hash']}%%\*\/(.+?)\/\*\/%%SmartyHeaderCode%%\*\/\?>\n)/s", $compiled_tpl, $result); 54 $saved_has_nocache_code = $compiler->template->has_nocache_code; 60 // remove header code 61 $compiled_tpl = preg_replace("/(<\?php \/\*%%SmartyHeaderCode:{$tpl->properties['nocache_hash']}%%\*\/(.+?)\/\*\/%%SmartyHeaderCode%%\*\/\?>\n)/s", '', $compiled_tpl); 62 if ($tpl->has_nocache_code) { 119 // create template object 120 $_output = "<?php \$_template = new {$compiler->smarty->template_class}($include_file, \$_smarty_tpl->smarty, \$_smarty_tpl, \$_smarty_tpl->cache_id, \$_smarty_tpl->compile_id, $_caching, $_cache_lifetime);\n"; 121 // delete {include} standard attributes 141 $_output .= $compiled_tpl; 142 $_output .= "<?php \$_smarty_tpl->updateParentVariables($_parent_scope);?>\n"; 143 $_output .= "<?php /* End of included template \"" . $tpl->getTemplateFilepath() . "\" */ ?>\n"; 143 $_output .= "<?php /* End of included template \"" . $tpl->getTemplateFilepath() . "\" */ ?>\n"; 144 $_output .= "<?php \$_smarty_tpl = array_pop(\$_tpl_stack);?>"; 145 } else {class-wp-filesystem-base.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 333 lines
1<?php 2/** 195 $folder_parts = explode('/', $folder); 196 $last_index = array_pop( array_keys( $folder_parts ) ); 197 $last_path = $folder_parts[ $last_index ]; 236 * 237 * From the PHP documentation page for fileperms() 238 * 238 * 239 * @link http://docs.php.net/fileperms 240 * @since 2.5 291 * Converts '-rw-r--r--' to 0644 292 * From "info at rvgate dot nl"'s comment on the PHP documentation for chmod() 293 * 293 * 294 * @link http://docs.php.net/manual/en/function.chmod.php#49614 295 * @since 2.5date.php https://github.com/2bj/kohana-core.git | PHP | 566 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 8 * @copyright (c) 2007-2009 Kohana Team 9 * @license http://kohanaphp.com/license 10 */ 28 * Timezone for formatted_time 29 * @link http://uk2.php.net/manual/en/timezones.php 30 * @var string 39 * 40 * [!!] A list of time zones that PHP supports can be found at 41 * <http://php.net/timezones>. 371 // Only a single output was requested, return it 372 return array_pop($output); 373 } 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime stringParser.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 412 lines
1<?php 2 68 // push all variables into the stack to keep the current state of the parser 69 // using get_object_vars() instead of foreach would lead to https://bugs.php.net/71336 70 // This hack can be removed when min version if PHP 7.0 128 // restore previous stack so previous parse() call can resume working 129 foreach (array_pop($this->stack) as $key => $val) { 130 $this->$key = $val; 241 { 242 array_pop($this->blockStack); 243 }QueryParserContext.php https://github.com/tedkulp/cmsmadesimple-2-0.git | PHP | 401 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: QueryParserContext.php 18954 2009-11-12 20:01:33Z alexander $ 21 */ 23/** Zend_Search_Lucene_Search_QueryToken */ 24require_once 'Zend/Search/Lucene/Search/QueryToken.php'; 25 143 if ($this->_mode === self::GM_BOOLEAN) { 144 require_once 'Zend/Search/Lucene/Search/QueryParserException.php'; 145 throw new Zend_Search_Lucene_Search_QueryParserException('It\'s not allowed to mix boolean and signs styles in the same subquery.'); 154 } else { 155 require_once 'Zend/Search/Lucene/Exception.php'; 156 throw new Zend_Search_Lucene_Exception('Unrecognized sign type.'); 187 if ($this->_nextEntryField !== null || $this->_nextEntrySign !== null) { 188 require_once 'Zend/Search/Lucene/Search/QueryParserException.php'; 189 throw new Zend_Search_Lucene_Search_QueryParserException('\'~\' modifier must follow word or phrase.');FragmentCache.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 193 lines
1<?php 2/** 43 * 44 * ```php 45 * [ 60 * 61 * ```php 62 * [ 106 } elseif ($this->cache instanceof Cache) { 107 array_pop($this->getView()->cacheStack); 108DeleteComment.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 355 lines
1<?php 2 5 */ 6require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' ); 7 71 $_POST['_page'] = 1; 72 $_POST['_url'] = admin_url( 'edit-comments.php' ); 73 128 $_POST['_page'] = 1; 129 $_POST['_url'] = admin_url( 'edit-comments.php' ); 130 158 $_POST['_page'] = 1; 159 $_POST['_url'] = admin_url( 'edit-comments.php' ); 160 187 $_POST['_page'] = 1; 188 $_POST['_url'] = admin_url( 'edit-comments.php' ); 189locallib.php https://github.com/kpike/moodle.git | PHP | 347 lines
1<?php 2 119 $contextids = get_parent_contexts($coursecontext); 120 array_pop($contextids); // remove system context, we are interested in categories only 121 168 $contextids = get_parent_contexts($coursecontext); 169 array_pop($contextids); // remove system context, we are interested in categories only 170skeleditor_fonctions.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 334 lines
1<?php 2/** 62 $tdir = explode('/',$dir); 63 $myfile = array_pop($tdir); 64 $depth = ""; 64 $depth = ""; 65 while(array_pop($tdir)) $depth.=" "; 66 $output .= "<option value='$dir'>$depth$myfile</option>\n"; 271 272 case 'php': 273 case 'html': 276 $parsers = array("parsexml.js", "parsecss.js", "tokenizejavascript.js", "parsejavascript.js", 277 "../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js", 278 "../contrib/php/js/parsephphtmlmixed.js"); 278 "../contrib/php/js/parsephphtmlmixed.js"); 279 $css = array("css/xmlcolors.css", "css/jscolors.css", "css/csscolors.css", "contrib/php/css/phpcolors.css"); 280 break;sfValidatorFromDescription.class.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 387 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfValidatorFromDescription.class.php 28700 2010-03-23 11:57:16Z fabien $ 18 */ 36 /** 37 * Returns a PHP representation for the validator. 38 * 38 * 39 * This PHP representation can be evaled to return the object validator. 40 * 42 * 43 * @return string The PHP representation for the validator 44 */ 44 */ 45 public function asPhp() 46 {Api.php https://github.com/leochaves/magento-pt_br.git | PHP | 498 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 326 $parentChildren = $parent_category->getChildren(); 327 $afterId = array_pop(explode(',', $parentChildren)); 328 }CleanerHelper.php https://github.com/bmcclure/CakePHP-Utils-Plugin.git | PHP | 452 lines
1<?php 2/** 8 * @copyright Copyright 2007-2010, Cake Development Corporation (http://cakedc.com) 9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 */ 265 $attributeSubSetTmp = array_reverse($attributeSubSetTmp); 266 array_pop($attributeSubSetTmp); 267 $attributeSubSetTmp = array_reverse($attributeSubSetTmp);admin.php https://gitlab.com/team_fsn/fsn-php | PHP | 321 lines
30 31include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); 32include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 100 101$change_theme_url = PHPWG_ROOT_PATH.'admin.php?'; 102$test_get = $_GET; 300trigger_notify('loc_begin_admin_page'); 301include(PHPWG_ROOT_PATH.'admin/'.$page['page'].'.php'); 302 311 312include(PHPWG_ROOT_PATH.'include/page_header.php'); 313 319 320include(PHPWG_ROOT_PATH.'include/page_tail.php'); 321?>FunctionDeclarationArgumentSpacingSniff.php https://bitbucket.org/lordgnu/php_codesniffer.git | PHP | 300 lines
27 * @version Release: @package_version@ 28 * @link http://pear.php.net/package/PHP_CodeSniffer 29 */ 58 * 59 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. 60 * @param int $stackPtr The position of the current token in the 64 */ 65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 66 { 86 * 87 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. 88 * @param int $openBracket The position of the open bracket 92 */ 93 public function processBracket(PHP_CodeSniffer_File $phpcsFile, $openBracket) 94 {date.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 401 lines
1<?php 2/** 93 // Only a single output was requested, return it 94 return array_pop($output); 95 }update.php https://bitbucket.org/rubbystar/carimod.git | PHP | 487 lines
1<?php 2/** 293 { 294 array_pop($this->stack); 295 324 // Check if PHP version supported via <php_minimum> tag, assume true if tag isn't present 325 if (!isset($this->currentUpdate->php_minimum) || version_compare(PHP_VERSION, $this->currentUpdate->php_minimum->_data, '>=')) 326 { 326 { 327 $phpMatch = true; 328 } 330 { 331 $phpMatch = false; 332 } 341 342 if ($phpMatch && $stabilityMatch) 343 {joomla.php https://gitlab.com/ricardosanchez/prueba | PHP | 482 lines
1<?php 2/** 146 $versionParts = explode('.', $jVersion); 147 $lastVersionPart = array_pop($versionParts); 148 250 * figure out what was in the mind of the maintainer and translate the 251 * funky version number to an actual PHP-format version string. 252 *PhpAcl.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 558 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package Cake.Controller.Component.Acl 20/** 21 * PhpAcl implements an access control system using a plain PHP configuration file. 22 * An example file can be found in app/Config/acl.php 56 * 57 * @var PhpAco 58 */ 83 84 App::uses('PhpReader', 'Configure'); 85 $Reader = new PhpReader(dirname($this->options['config']) . DS);ref.array.html https://bitbucket.org/thncr/manuals.git | HTML | 645 lines
11 <div class="up"><a href="book.array.html">数组</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 13</div><hr /><div id="ref.array" class="reference"> 637 638<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="function.array-change-key-case.html">array_change_key_case</a> — 返回字符串键名全为小写或大写的数组</li><li><a href="function.array-chunk.html">array_chunk</a> — 将一个数组分割成多个</li><li><a href="function.array-combine.html">array_combine</a> — 创建一个数组,用一个数组的值作为其键名,另一个数组的值作为其值</li><li><a href="function.array-count-values.html">array_count_values</a> — 统计数组中所有的值出现的次数</li><li><a href="function.array-diff-assoc.html">array_diff_assoc</a> — 带索引检查计算数组的差集</li><li><a href="function.array-diff-key.html">array_diff_key</a> — 使用键名比较计算数组的差集</li><li><a href="function.array-diff-uassoc.html">array_diff_uassoc</a> — 用用户提供的回调函数做索引检查来计算数组的差集</li><li><a href="function.array-diff-ukey.html">array_diff_ukey</a> — 用回调函数对键名比较计算数组的差集</li><li><a href="function.array-diff.html">array_diff</a> — 计算数组的差集</li><li><a href="function.array-fill-keys.html">array_fill_keys</a> — 使用指定的键和值填充数组</li><li><a href="function.array-fill.html">array_fill</a> — 用给定的值填充数组</li><li><a href="function.array-filter.html">array_filter</a> — 用回调函数过滤数组中的单元</li><li><a href="function.array-flip.html">array_flip</a> — 交换数组中的键和值</li><li><a href="function.array-intersect-assoc.html">array_intersect_assoc</a> — 带索引检查计算数组的交集</li><li><a href="function.array-intersect-key.html">array_intersect_key</a> — 使用键名比较计算数组的交集</li><li><a href="function.array-intersect-uassoc.html">array_intersect_uassoc</a> — 带索引检查计算数组的交集,用回调函数比较索引</li><li><a href="function.array-intersect-ukey.html">array_intersect_ukey</a> — 用回调函数比较键名来计算数组的交集</li><li><a href="function.array-intersect.html">array_intersect</a> — 计算数组的交集</li><li><a href="function.array-key-exists.html">array_key_exists</a> — 检查给定的键名或索引是否存在于数组中</li><li><a href="function.array-keys.html">array_keys</a> — 返回数组中所有的键名</li><li><a href="function.array-map.html">array_map</a> — 将回调函数作用到给定数组的单元上</li><li><a href="function.array-merge-recursive.html">array_merge_recursive</a> — 递归地合并一个或多个数组</li><li><a href="function.array-merge.html">array_merge</a> — 合并一个或多个数组</li><li><a href="function.array-multisort.html">array_multisort</a> — 对多个数组或多维数组进行排序</li><li><a href="function.array-pad.html">array_pad</a> — 用值将数组填补到指定长度</li><li><a href="function.array-pop.html">array_pop</a> — 将数组最后一个单元弹出(出栈)</li><li><a href="function.array-product.html">array_product</a> — 计算数组中所有值的乘积</li><li><a href="function.array-push.html">array_push</a> — 将一个或多个单元压入数组的末尾(入栈)</li><li><a href="function.array-rand.html">array_rand</a> — 从数组中随机取出一个或多个单元</li><li><a href="function.array-reduce.html">array_reduce</a> — 用回调函数迭代地将数组简化为单一的值</li><li><a href="function.array-replace-recursive.html">array_replace_recursive</a> — 使用传递的数组递归替换第一个数组的元素</li><li><a href="function.array-replace.html">array_replace</a> — 使用传递的数组替换第一个数组的元素</li><li><a href="function.array-reverse.html">array_reverse</a> — 返回一个单元顺序相反的数组</li><li><a href="function.array-search.html">array_search</a> — 在数组中搜索给定的值,如果成功则返回相应的键名</li><li><a href="function.array-shift.html">array_shift</a> — 将数组开头的单元移出数组</li><li><a href="function.array-slice.html">array_slice</a> — 从数组中取出一段</li><li><a href="function.array-splice.html">array_splice</a> — 把数组中的一部分去掉并用其它值取代</li><li><a href="function.array-sum.html">array_sum</a> — 计算数组中所有值的和</li><li><a href="function.array-udiff-assoc.html">array_udiff_assoc</a> — 带索引检查计算数组的差集,用回调函数比较数据</li><li><a href="function.array-udiff-uassoc.html">array_udiff_uassoc</a> — 带索引检查计算数组的差集,用回调函数比较数据和索引</li><li><a href="function.array-udiff.html">array_udiff</a> — 用回调函数比较数据来计算数组的差集</li><li><a href="function.array-uintersect-assoc.html">array_uintersect_assoc</a> — 带索引检查计算数组的交集,用回调函数比较数据</li><li><a href="function.array-uintersect-uassoc.html">array_uintersect_uassoc</a> — 带索引检查计算数组的交集,用回调函数比较数据和索引</li><li><a href="function.array-uintersect.html">array_uintersect</a> — 计算数组的交集,用回调函数比较数据</li><li><a href="function.array-unique.html">array_unique</a> — 移除数组中重复的值</li><li><a href="function.array-unshift.html">array_unshift</a> — 在数组开头插入一个或多个单元</li><li><a href="function.array-values.html">array_values</a> — 返回数组中所有的值</li><li><a href="function.array-walk-recursive.html">array_walk_recursive</a> — 对数组中的每个成员递归地应用用户函数</li><li><a href="function.array-walk.html">array_walk</a> — 对数组中的每个成员应用用户函数</li><li><a href="function.array.html">array</a> — 新建一个数组</li><li><a href="function.arsort.html">arsort</a> — 对数组进行逆向排序并保持索引关系</li><li><a href="function.asort.html">asort</a> — 对数组进行排序并保持索引关系</li><li><a href="function.compact.html">compact</a> — 建立一个数组,包括变量名和它们的值</li><li><a href="function.count.html">count</a> — 计算数组中的单元数目或对象中的属性个数</li><li><a href="function.current.html">current</a> — 返回数组中的当前单元</li><li><a href="function.each.html">each</a> — 返回数组中当前的键/值对并将数组指针向前移动一步</li><li><a href="function.end.html">end</a> — 将数组的内部指针指向最后一个单元</li><li><a href="function.extract.html">extract</a> — 从数组中将变量导入到当前的符号表</li><li><a href="function.in-array.html">in_array</a> — 检查数组中是否存在某个值</li><li><a href="function.key.html">key</a> — 从关联数组中取得键名</li><li><a href="function.krsort.html">krsort</a> — 对数组按照键名逆向排序</li><li><a href="function.ksort.html">ksort</a> — 对数组按照键名排序</li><li><a href="function.list.html">list</a> — 把数组中的值赋给一些变量</li><li><a href="function.natcasesort.html">natcasesort</a> — 用“自然排序”算法对数组进行不区分大小写字母的排序</li><li><a href="function.natsort.html">natsort</a> — 用“自然排序”算法对数组排序</li><li><a href="function.next.html">next</a> — 将数组中的内部指针向前移动一位</li><li><a href="function.pos.html">pos</a> — current 的别名</li><li><a href="function.prev.html">prev</a> — 将数组的内部指针倒回一位</li><li><a href="function.range.html">range</a> — 建立一个包含指定范围单元的数组</li><li><a href="function.reset.html">reset</a> — 将数组的内部指针指向第一个单元</li><li><a href="function.rsort.html">rsort</a> — 对数组逆向排序</li><li><a href="function.shuffle.html">shuffle</a> — 将数组打乱</li><li><a href="function.sizeof.html">sizeof</a> — count 的别名</li><li><a href="function.sort.html">sort</a> — 对数组排序</li><li><a href="function.uasort.html">uasort</a> — 使用用户自定义的比较函数对数组中的值进行排序并保持索引关联</li><li><a href="function.uksort.html">uksort</a> — 使用用户自定义的比较函数对数组中的键名进行排序</li><li><a href="function.usort.html">usort</a> — 使用用户自定义的比较函数对数组中的值进行排序</li></ul> 639</div> 643 <div class="up"><a href="book.array.html">数组</a></div> 644 <div class="home"><a href="index.html">PHP Manual</a></div> 645</div></body></html>ContainableBehavior.php https://bitbucket.org/luobailiang/cake.git | PHP | 427 lines
1<?php 2/** 6 * 7 * PHP 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package Cake.Model.Behavior 17 * @package Cake.Model.Behavior 18 * @since CakePHP(tm) v 1.2.0.5669 19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 26 * @package Cake.Model.Behavior 27 * @link http://book.cakephp.org/2.0/en/core-libraries/behaviors/containable.html 28 */subscription.php https://github.com/godber/PHXdata-Website.git | PHP | 393 lines
1<?php 2/** 124 $subs = subscription_find($page, array('user' => $user)); 125 if (count($subs) > 0 && array_pop(array_keys($subs)) === $page) { 126 if (!$overwrite) {Profile.php https://github.com/timstephenson/NatureBridge.git | PHP | 308 lines
1<?php 2 34 * @copyright CiviCRM LLC (c) 2004-2011 35 * @version $Id: ActivityProfile.php 30486 2011-05-20 16:12:09Z rajan $ 36 * 41 */ 42require_once 'api/v3/utils.php'; 43 43 44require_once 'CRM/Core/BAO/UFGroup.php'; 45require_once 'CRM/Core/BAO/UFField.php'; 45require_once 'CRM/Core/BAO/UFField.php'; 46require_once 'CRM/Core/Permission.php'; 47 88 89 require_once 'CRM/Profile/Form.php'; 90 $errors = CRM_Profile_Form::validateContactActivityProfile( $params['activity_id'],BlockCommentSniff.php https://gitlab.com/0072016/PHP_CodeSniffer | PHP | 357 lines
27 * @version Release: @package_version@ 28 * @link http://pear.php.net/package/PHP_CodeSniffer 29 */ 64 */ 65 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 66 { 67 if ($this->_tabWidth === null) { 68 $cliValues = $phpcsFile->phpcs->cli->getCommandLineValues(); 69 if (isset($cliValues['tabWidth']) === false || $cliValues['tabWidth'] === 0) { 86 if ($tokens[$stackPtr]['code'] === T_DOC_COMMENT_OPEN_TAG) { 87 $nextToken = $phpcsFile->findNext(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr + 1), null, true); 88 $ignore = array( 105 106 $prevToken = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null, true); 107 if ($tokens[$prevToken]['code'] === T_OPEN_TAG) {kalturalib.php https://gitlab.com/ElvisAns/tiki | PHP | 381 lines
1<?php 2 210 if (count($existing->objects) > 0) { 211 $current_obj = array_pop($existing->objects); 212 $current = $current_obj->id;TableProcessor.php https://gitlab.com/staging06/myproject | PHP | 356 lines
1<?php 2/** 2/** 3 * TableProcessor.php 4 * 32 33require_once(dirname(__FILE__) . '/AbstractProcessor.php'); 34require_once(dirname(__FILE__) . '/CreateDefinitionProcessor.php'); 34require_once(dirname(__FILE__) . '/CreateDefinitionProcessor.php'); 35require_once(dirname(__FILE__) . '/../utils/ExpressionType.php'); 36 95 if ($prevCategory === 'CREATE_DEF') { 96 $last = array_pop($result['options']); 97 $last['delim'] = ',';LoggerLoggingEvent.php https://github.com/samar-tmr/MyVenture.git | PHP | 378 lines
1<?php 2/** 17 * 18 * @package log4php 19 */ 24 * @version $Revision: 1059292 $ 25 * @package log4php 26 */ 87 /** 88 * The application supplied message rendered through the log4php 89 * objet rendering mechanism. At present renderedMessage == message. 95 * The name of thread in which this logging event was generated. 96 * log4php saves here the process id via {@link PHP_MANUAL#getmypid getmypid()} 97 * @var mixed 113 /** 114 * @var LoggerThrowableInformation log4php internal representation of throwable 115 */importer_blog.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 433 lines
1<?php 2 13 if ($_FILES 14 AND $f = array_pop($_FILES) 15 AND !$f['error']) {Config.php https://gitlab.com/Skull3x/GladiatorMine | PHP | 503 lines
1<?php 2 123 $extension = explode(".", basename($this->file)); 124 $extension = strtolower(trim(array_pop($extension))); 125 if(isset(Config::$formats[$extension])){ 353 $components = explode(".", $path); 354 $final = array_pop($components); 355 foreach($components as $component){