PageRenderTime 290ms queryTime 41ms sortTime 6ms getByIdsTime 91ms findMatchingLines 94ms

100+ results results for 'php array_slice repo:felipegirotti/2D-3D-Barcodes-Generator' (290 ms)

Not the results you expected?
Group.php https://github.com/quarkness/piwik.git | PHP | 328 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
8 *
                    
9 * Copyright (c) 2006-2010, Alexey Borzov <avb@php.net>,
                    
10 *                          Bertrand Mansion <golgote@mamasam.com>
                    
38 * @package    HTML_QuickForm2
                    
39 * @author     Alexey Borzov <avb@php.net>
                    
40 * @author     Bertrand Mansion <golgote@mamasam.com>
                    
40 * @author     Bertrand Mansion <golgote@mamasam.com>
                    
41 * @license    http://opensource.org/licenses/bsd-license.php New BSD License
                    
42 * @version    SVN: $Id: Group.php 294057 2010-01-26 21:10:28Z avb $
                    
42 * @version    SVN: $Id: Group.php 294057 2010-01-26 21:10:28Z avb $
                    
43 * @link       http://pear.php.net/package/HTML_QuickForm2
                    
44 */
                    
                
LALR.php https://github.com/sergiosgc/Text_Parser.git | PHP | 219 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */
                    
58        }
                    
59        $this->_stateStack = array_slice($this->_stateStack, 0, count($this->_stateStack) - 2 * $count);
                    
60
                    
                
class.jetpack-sync-queue.php https://gitlab.com/vanafroo/landingpage | PHP | 459 lines
                    
1<?php
                    
2
                    
163
                    
164		$buffer = new Jetpack_Sync_Queue_Buffer( $buffer_id, array_slice( $items, 0, $buffer_size ) );
                    
165
                    
391		// at the same time
                    
392		// TODO: confirm we only need to support PHP 5.05+ (otherwise we'll need to emulate microtime as float, and avoid PHP_INT_MAX)
                    
393		// @see: http://php.net/manual/en/function.microtime.php
                    
396		// row iterator is used to avoid collisions where we're writing data waaay fast in a single process
                    
397		if ( $this->row_iterator === PHP_INT_MAX ) {
                    
398			$this->row_iterator = 0;
                    
                
Url.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 548 lines
                    
1<?php
                    
2
                    
350    {
                    
351        return array_slice(explode('/', $this->getPath()), 1);
                    
352    }
                    
                
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
                    
132
                    
133        $runnable = array_slice($migrations, $start, $item_length);
                    
134
                    
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(
                    
                
Util.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 476 lines
                    
1<?php
                    
2/**
                    
140	 * @deprecated WP 3.1
                    
141	 * @deprecated Use wp_array_slice_assoc()
                    
142	 * @see wp_array_slice_assoc()
                    
149	public static function array_extract( $array, $keys ) {
                    
150		_deprecated_function( __CLASS__ . '::' . __FUNCTION__, 'WP 3.1', 'wp_array_slice_assoc()' );
                    
151		return wp_array_slice_assoc( $array, $keys );
                    
343	if ( 'dbDelta' == $opts['upgrade_method'] ) {
                    
344		require_once ABSPATH . 'wp-admin/includes/upgrade.php';
                    
345		dbDelta( "CREATE TABLE $full_table_name ( $columns ) $table_options" );
                    
                
reputation.php https://gitlab.com/Ltaimao/wecenter | PHP | 403 lines
                    
1<?php
                    
2/*
                    
295			{
                    
296				$user_topics = array_slice($user_topics, 0, 20);
                    
297			}
                    
                
class-wp-customize-section.php https://gitlab.com/em645jn/brochure | PHP | 387 lines
                    
1<?php
                    
2/**
                    
225	public function json() {
                    
226		$array = wp_array_slice_assoc( (array) $this, array( 'id', 'description', 'priority', 'panel', 'type' ) );
                    
227		$array['title'] = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );
                    
327        ?>
                    
328		<script type="text/html" id="tmpl-customize-section-<?php echo $this->type; ?>">
                    
329			<?php $this->render_template(); ?>
                    
330		</script>
                    
331        <?php
                    
332	}
                    
349				{{ data.title }}
                    
350				<span class="screen-reader-text"><?php _e( 'Press return or enter to open this section' ); ?></span>
                    
351			</h3>
                    
355						<button class="customize-section-back" tabindex="-1">
                    
356							<span class="screen-reader-text"><?php _e( 'Back' ); ?></span>
                    
357						</button>
                    
                
DoctrineExtension.php https://bitbucket.org/vvanuytven/php_auto.git | PHP | 322 lines
                    
1<?php
                    
2
                    
82                    $tmp = $nextLevelElement;
                    
83                    $newCombination = array_slice($tmp, 0);
                    
84                    $newCombination[] = $element;
                    
84                    $newCombination[] = $element;
                    
85                    $result[] = array_slice($newCombination, 0);
                    
86                }
                    
                
Migrator.php https://bitbucket.org/helfreire/tccsite.git | PHP | 383 lines
                    
1<?php namespace Illuminate\Database\Migrations;
                    
2
                    
218	{
                    
219		$files = $this->files->glob($path.'/*_*.php');
                    
220
                    
227		{
                    
228			return str_replace('.php', '', basename($file));
                    
229
                    
247	{
                    
248		foreach ($files as $file) $this->files->requireOnce($path.'/'.$file.'.php');
                    
249	}
                    
296	{
                    
297		$file = implode('_', array_slice(explode('_', $file), 4));
                    
298
                    
                
class-wp-themes-list-table.php https://github.com/thomasbennett/localbnd.git | PHP | 240 lines
                    
70			if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) {
                    
71				printf( __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> or <a href="%2$s">install</a> more themes.' ), network_admin_url( 'site-themes.php?id=' . $GLOBALS['blog_id'] ), network_admin_url( 'theme-install.php' ) );
                    
72
                    
105?>
                    
106		<?php $this->tablenav( 'top' ); ?>
                    
107
                    
109			<tbody id="the-list" class="list:themes">
                    
110				<?php $this->display_rows_or_placeholder(); ?>
                    
111			</tbody>
                    
175?>
                    
176		<a href="<?php echo $preview_link; ?>" class="<?php echo $thickbox_class; ?> screenshot">
                    
177<?php if ( $screenshot ) : ?>
                    
192<?php if ( $tags ) : ?>
                    
193<p><?php _e( 'Tags:' ); ?> <?php echo join( ', ', $tags ); ?></p>
                    
194<?php endif; ?>
                    
                
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 *
                    
219            if (function_exists('xdebug_get_function_stack')) {
                    
220                $trace = array_slice(array_reverse(xdebug_get_function_stack()), 4);
                    
221
                    
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'])) {
                    
240            } else {
                    
241                $trace = array_slice(array_reverse($trace), 1);
                    
242            }
                    
                
class-wp-network.php https://gitlab.com/pankajmohale/chef2go | PHP | 408 lines
                    
1<?php
                    
2/**
                    
322			if ( ( null !== $segments ) && count( $path_segments ) > $segments ) {
                    
323				$path_segments = array_slice( $path_segments, 0, $segments );
                    
324			}
                    
                
em-calendar.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 381 lines
                    
1<?php
                    
2class EM_Calendar extends EM_Object {
                    
92		if($offset > 0){ 
                    
93		    $offset_correction = array_slice($num_days_last_array, -$offset, $offset); 
                    
94		    $new_count = array_merge($offset_correction, $num_days_array); 
                    
301		$calendar_array  = self::get($args);
                    
302		$template = (!empty($args['full'])) ? 'templates/calendar-full.php':'templates/calendar-small.php';
                    
303		ob_start();
                    
                
Inbox.php https://github.com/Br3nda/statusnet-debian.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP version 5
                    
8 *
                    
29
                    
30require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
                    
31
                    
195
                    
196        $ids = array_slice($ids, $offset, $limit);
                    
197
                    
230        // Fast path when nothing's deleted.
                    
231        $firstChunk = array_slice($ids, 0, $limit);
                    
232        $notices = Notice::getStreamByIds($firstChunk);
                    
241        $items = $notices->_items;
                    
242        $remainder = array_slice($ids, $limit);
                    
243
                    
                
Exception.php https://github.com/sunnysujan/wikireader.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
67	function msg( $key, $fallback /*[, params...] */ ) {
                    
68		$args = array_slice( func_get_args(), 2 );
                    
69		if ( $this->useMessageCache() ) {
                    
90			return "<p>Set <b><tt>\$wgShowExceptionDetails = true;</tt></b> " .
                    
91				"at the bottom of LocalSettings.php to show detailed " .
                    
92				"debugging information.</p>";
                    
106			return "Set \$wgShowExceptionDetails = true; " .
                    
107				"in LocalSettings.php to show detailed debugging information.\n";
                    
108		}
                    
320function wfPrintError( $message ) {
                    
321	#NOTE: STDERR may not be available, especially if php-cgi is used from the command line (bug #15602).
                    
322	#      Try to produce meaningful output anyway. Using echo may corrupt output to STDOUT though.
                    
                
lib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 331 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
17defined('MOODLE_INTERNAL') OR die('not allowed');
                    
18require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php');
                    
19
                    
31        global $DB, $CFG;
                    
32        require_once('textfield_form.php');
                    
33
                    
45        //the elements for position dropdownlist
                    
46        $positionlist = array_slice(range(0, $i_formselect_last), 1, $i_formselect_last, true);
                    
47
                    
76
                    
77        $this->item_form = new feedback_textfield_form('edit_item.php', $customdata);
                    
78    }
                    
                
new.php https://github.com/md-tech/openemr.git | PHP | 161 lines
                    
29<head>
                    
30<?php html_header_show();?>
                    
31<link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
                    
46
                    
47<form action="<?php echo $rootdir;?>/forms/plist/save.php?mode=new" method="post" enctype="multipart/form-data" name="my_form">
                    
48<?php include("../../acog_menu.inc"); ?>
                    
51    <td width="120" align="left" valign="bottom" class="srvCaption">Patient name:</td>
                    
52    <td align="left" valign="bottom"><input name="pname" type="text" class="fullin" id="pname" value="<?php echo $patient{'fname'}.' '.$patient{'mname'}.' '.$patient{'lname'}; ?>"></td>
                    
53  </tr>
                    
55    <td width="120" align="left" valign="bottom" class="srvCaption">Birth date: </td>
                    
56    <td align="left" valign="bottom"><input name="pbdate" type="text" class="fullin" id="pbdate" value="<?php  echo $patient{'DOB'};  ?>"></td>
                    
57  </tr>
                    
156</form>
                    
157<?php
                    
158formFooter();
                    
                
cake_test_case.test.php https://github.com/bb-dev/cakephp2x.git | PHP | 474 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP Version 5.x
                    
8 *
                    
8 *
                    
9 * CakePHP : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2006-2009, Cake Software Foundation, Inc.
                    
15 * @copyright     Copyright 2006-2009, Cake Software Foundation, Inc.
                    
16 * @link          http://cakephp.org CakePHP Project
                    
17 * @package       cake
                    
18 * @subpackage    cake.cake.libs.
                    
19 * @since         CakePHP v 1.2.0.4487
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
24if (!class_exists('AppController')) {
                    
25	require_once LIBS . 'controller' . DS . 'app_controller.php';
                    
26} elseif (!defined('APP_CONTROLLER_EXISTS')) {
                    
                
ThemeInitialization.php https://gitlab.com/reasonat/test8 | PHP | 334 lines
                    
1<?php
                    
2
                    
111          // some people might experience slight visual regressions on
                    
112          // update.php.
                    
113          continue;
                    
246    foreach ($base_themes as $base_theme) {
                    
247      $base_active_themes[$base_theme->getName()] = $this->getActiveTheme($base_theme, array_slice($base_themes, 1));
                    
248    }
                    
                
PwLikeService.php https://gitlab.com/wuhang2003/phpwind | PHP | 419 lines
                    
1<?php
                    
2/**
                    
3 * @author Foxsee@aliyun.com
                    
4 * @copyright ?2003-2103 phpwind.com
                    
5 * @license http://www.phpwind.com
                    
5 * @license http://www.phpwind.com
                    
6 * @version $Id: PwLikeService.php 20027 2012-10-22 11:49:23Z gao.wanggao $ 
                    
7 * @package 
                    
133		$_tagids = empty($tagids)? array() : explode(',', $tagids);
                    
134		if (count($tagnames) > 5) $tagnames = array_slice($tagnames, 0, 5);
                    
135		$newTags = $this->diffTagNames($tagnames, $uid);
                    
                
IndexController.php https://gitlab.com/wuhang2003/phpwind | PHP | 419 lines
                    
1<?php
                    
2Wind::import('LIB:base.PwBaseController');
                    
14	
                    
15	/* (non-PHPdoc)
                    
16	 * @see WindController::run()
                    
63			$relationTagIds = array_keys($relations);
                    
64			$myTagList = array_slice($relationTagIds,0,10);
                    
65			$myTagsList = $this->_getTagDs()->fetchTag($relationTagIds);
                    
73			$tagContents = $params = $relatedTags = array();
                    
74			$tmpTagContent = $myTags['tags'] ? array_slice($myTags['tags'], 0, 5, true) : array();
                    
75			foreach($tmpTagContent as $k=>$v) {
                    
378	private function _setHotTagList($hotTags){
                    
379		$hotTags = array_slice($hotTags,0, $this->hotTagList);
                    
380		$this->setOutput($hotTags,'hotTagList');
                    
                
Collection.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 717 lines
                    
1<?php namespace Illuminate\Support;
                    
2
                    
397	{
                    
398		return new static(array_slice($this->items, $offset, $length, $preserveKeys));
                    
399	}
                    
                
filter.php https://github.com/kelios/imshop.git | PHP | 394 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
37        // Удалим из строки запроса /filter/pages
                    
38        $segments = array_slice($this->uri->segment_array(), 2);
                    
39
                    
393
                    
394/* End of file filter.php */
                    
395
                    
                
PredisClusterHashStrategy.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 389 lines
                    
1<?php
                    
2
                    
259
                    
260        if ($this->checkSameHashForKeys(array_slice($arguments, 0, count($arguments) - 1))) {
                    
261            return $arguments[0];
                    
274
                    
275        if ($this->checkSameHashForKeys(array_slice($arguments, 1, count($arguments)))) {
                    
276            return $arguments[1];
                    
288        $arguments = $command->getArguments();
                    
289        $keys = array_merge(array($arguments[0]), array_slice($arguments, 2, $arguments[1]));
                    
290
                    
306        } else {
                    
307            $keys = array_slice($args = $command->getArguments(), 2, $args[1]);
                    
308        }
                    
                
class_site_categories_widget_categories.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 314 lines
                    
84			<input type="radio" name="<?php echo $this->get_field_name( 'hide_empty'); ?>" id="<?php echo $this->get_field_id('hide_empty') ?>_yes" 
                    
85				value="1" <?php if ($instance['hide_empty'] == "1") { echo ' checked="checked" '; } ?> /> <label for="<?php echo $this->get_field_id('hide_empty') ?>_yes"><?php _e('Yes', SITE_CATEGORIES_I18N_DOMAIN); ?></label>
                    
86			
                    
103			<input type="radio" name="<?php echo $this->get_field_name( 'icon_show'); ?>" id="<?php echo $this->get_field_id('icon_show') ?>_yes" 
                    
104				value="1" <?php if ($instance['icon_show'] == "1") { echo ' checked="checked" '; } ?> /> <label for="<?php echo $this->get_field_id('icon_show') ?>_yes"><?php _e('Yes', SITE_CATEGORIES_I18N_DOMAIN); ?></label>
                    
105			
                    
106			<input type="radio" name="<?php echo $this->get_field_name( 'icon_show'); ?>" id="<?php echo $this->get_field_id('icon_show') ?>_no" 
                    
107				value="0" <?php if ($instance['icon_show'] == "0") { echo ' checked="checked" '; } ?> /> <label for="<?php echo $this->get_field_id('icon_show') ?>_no"><?php _e('No', SITE_CATEGORIES_I18N_DOMAIN); ?></label>
                    
108		</p>
                    
118			<input type="radio" name="<?php echo $this->get_field_name( 'show_more_link'); ?>" id="<?php echo $this->get_field_id('show_more_link') ?>_yes" 
                    
119				value="1" <?php if ($instance['show_more_link'] == "1") { echo ' checked="checked" '; } ?> /> <label for="<?php echo $this->get_field_id('show_more_link') ?>_yes"><?php _e('Yes', SITE_CATEGORIES_I18N_DOMAIN); ?></label>
                    
120			
                    
121			<input type="radio" name="<?php echo $this->get_field_name( 'show_more_link'); ?>" id="<?php echo $this->get_field_id('show_more_link') ?>_no" 
                    
122				value="0" <?php if ($instance['show_more_link'] == "0") { echo ' checked="checked" '; } ?> /> <label for="<?php echo $this->get_field_id('show_more_link') ?>_no"><?php _e('No', SITE_CATEGORIES_I18N_DOMAIN); ?></label>
                    
123		</p>
                    
                
router.php https://gitlab.com/Bartwillemsen/aurora-framework | PHP | 275 lines
                    
1<?php
                    
2namespace Aurora\Routing;
                    
83	 *
                    
84	 * The returned array will be identical the array defined in the routes.php file.
                    
85	 *
                    
192			// parameters that should be passed to the controller method.
                    
193			$controller = implode('.', array_slice($segments, 0, $key));
                    
194
                    
194
                    
195			$segments = array_slice($segments, $key);
                    
196
                    
219		foreach (array_reverse($segments, true) as $key => $value) {
                    
220			$controller = implode('/', array_slice($segments, 0, $key + 1)).EXT;
                    
221
                    
                
utils.php https://gitlab.com/Blueprint-Marketing/wp-cli | PHP | 506 lines
                    
18	foreach ( get_vendor_paths() as $vendor_path ) {
                    
19		if ( file_exists( $vendor_path . '/autoload.php' ) ) {
                    
20			require $vendor_path . '/autoload.php';
                    
44function load_command( $name ) {
                    
45	$path = WP_CLI_ROOT . "/php/commands/$name.php";
                    
46
                    
52function load_all_commands() {
                    
53	$cmd_dir = WP_CLI_ROOT . '/php/commands';
                    
54
                    
189	if ( null === $path ) {
                    
190		if ( file_exists( ABSPATH . 'wp-config.php' ) )
                    
191			$path = ABSPATH . 'wp-config.php';
                    
191			$path = ABSPATH . 'wp-config.php';
                    
192		elseif ( file_exists( ABSPATH . '../wp-config.php' ) && ! file_exists( ABSPATH . '/../wp-settings.php' ) )
                    
193			$path = ABSPATH . '../wp-config.php';
                    
                
class-wp-hook.php https://gitlab.com/VTTE/sitios-vtte | PHP | 510 lines
                    
392	 *
                    
393	 * @link https://www.php.net/manual/en/arrayaccess.offsetexists.php
                    
394	 *
                    
406	 *
                    
407	 * @link https://www.php.net/manual/en/arrayaccess.offsetget.php
                    
408	 *
                    
420	 *
                    
421	 * @link https://www.php.net/manual/en/arrayaccess.offsetset.php
                    
422	 *
                    
438	 *
                    
439	 * @link https://www.php.net/manual/en/arrayaccess.offsetunset.php
                    
440	 *
                    
451	 *
                    
452	 * @link https://www.php.net/manual/en/iterator.current.php
                    
453	 *
                    
                
StringPresenter.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 492 lines
                    
3/*
                    
4 * This file is part of PhpSpec, A php toolset to drive emergent
                    
5 * design by specification.
                    
16use Exception;
                    
17use PhpSpec\Exception\Exception as PhpSpecException;
                    
18use PhpSpec\Exception\Example\NotEqualException;
                    
18use PhpSpec\Exception\Example\NotEqualException;
                    
19use PhpSpec\Exception\Example\ErrorException;
                    
20use PhpSpec\Exception\Example\PendingException;
                    
43     */
                    
44    private $phpspecPath;
                    
45
                    
46    /**
                    
47     * The PhpSpec Runner base path.
                    
48     *
                    
                
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            {
                    
187                // Module root controller?
                    
188                if ($directory && is_file($source . $_ucfirst($directory) . '.php')) {
                    
189                    $this->class = $directory;
                    
                
class-wp-walker.php https://gitlab.com/ReneMC/Custom-wordpress-theme | PHP | 425 lines
                    
1<?php
                    
2/**
                    
190	public function walk( $elements, $max_depth ) {
                    
191		$args = array_slice(func_get_args(), 2);
                    
192		$output = '';
                    
229
                    
230			$first = array_slice( $elements, 0, 1 );
                    
231			$root = $first[0];
                    
282
                    
283		$args = array_slice( func_get_args(), 4 );
                    
284		$output = '';
                    
                
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     *
                    
220
                    
221        foreach (array_slice($dictionary, 0, 3) as $i => $value) {
                    
222            if (in_array($value, ['nx', 'xx', 'ch', 'incr', 'NX', 'XX', 'CH', 'INCR'], true)) {
                    
                
Compiler.php https://bitbucket.org/iiic/iszp.git | PHP | 369 lines
                    
1<?php
                    
2
                    
115	{
                    
116		for ($i = 0; $slice = array_slice($this->extensions, $i, 1); $i++) {
                    
117			reset($slice)->loadConfiguration();
                    
177				$class->documents = preg_replace("#\\S+(?= \\$$name\\z)#", $def->class, $class->documents);
                    
178				$classes[] = $accessor = new Nette\Utils\PhpGenerator\ClassType($def->class);
                    
179				foreach ($found as $item) {
                    
                
CredisClusterTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 224 lines
                    
1<?php
                    
2
                    
2
                    
3require_once dirname(__FILE__).'/../Client.php';
                    
4require_once dirname(__FILE__).'/../Cluster.php';
                    
5
                    
6class CredisClusterTest extends PHPUnit_Framework_TestCase
                    
7{
                    
38    }
                    
39    $clients = array_slice($this->config,0,4);
                    
40    $this->cluster = new Credis_Cluster($clients,2,$this->useStandalone);
                    
58      $this->tearDown();
                    
59      $this->cluster = new Credis_Cluster(array_slice($this->config,0,3),2,$this->useStandalone);
                    
60      $keys = array();
                    
70      }
                    
71      $this->cluster = new Credis_Cluster(array_slice($this->config,0,4),2,true,$this->useStandalone);
                    
72      $hits = 0;
                    
                
ClassScanner.php https://github.com/sidealice/zf2.git | PHP | 494 lines
                    
1<?php
                    
2
                    
462        $m = new $returnScannerClass(
                    
463            array_slice($this->tokens, $info['tokenStart'], $info['tokenEnd'] - $info['tokenStart'] + 1),
                    
464            $this->namespace,
                    
                
ResourceRegistrar.php https://gitlab.com/MineYourMind/BoNeMEAL | PHP | 392 lines
                    
1<?php namespace Illuminate\Routing;
                    
2
                    
98		// last segment, which will be considered the final resources name we use.
                    
99		$prefix = implode('/', array_slice($segments, 0, -1));
                    
100
                    
                
ArrayCollection.php https://gitlab.com/reasonat/test8 | PHP | 387 lines
                    
1<?php
                    
2/*
                    
26/**
                    
27 * An ArrayCollection is a Collection implementation that wraps a regular PHP array.
                    
28 *
                    
352    {
                    
353        return array_slice($this->elements, $offset, $length, true);
                    
354    }
                    
381        if ($offset || $length) {
                    
382            $filtered = array_slice($filtered, (int)$offset, $length);
                    
383        }
                    
                
class-wp-hook.php https://gitlab.com/WPonEB/WPonEB | PHP | 510 lines
                    
392	 *
                    
393	 * @link https://secure.php.net/manual/en/arrayaccess.offsetexists.php
                    
394	 *
                    
406	 *
                    
407	 * @link https://secure.php.net/manual/en/arrayaccess.offsetget.php
                    
408	 *
                    
420	 *
                    
421	 * @link https://secure.php.net/manual/en/arrayaccess.offsetset.php
                    
422	 *
                    
438	 *
                    
439	 * @link https://secure.php.net/manual/en/arrayaccess.offsetunset.php
                    
440	 *
                    
451	 *
                    
452	 * @link https://secure.php.net/manual/en/iterator.current.php
                    
453	 *
                    
                
Router.php https://github.com/holsinger/openfloor.git | PHP | 562 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
82		
                    
83		// Load the routes.php file.
                    
84		@include(APPPATH.'config/routes'.EXT);
                    
209			$this->set_directory($segments[0]);
                    
210			$segments = array_slice($segments, 1);
                    
211			
                    
298				// Note: Due to a bug in current() that affects some versions
                    
299				// of PHP we can not pass function call directly into it
                    
300				$keys = array_keys($_GET);
                    
384		
                    
385		$parsed_uri = implode("/", array_slice($parsed_uri, $i));
                    
386		
                    
                
FMModelGenerete_xml.php https://gitlab.com/ezgonzalez/integral | PHP | 276 lines
                    
1<?php
                    
2
                    
53			$label_all = explode('#****#', $rows_lable[0]->label_order);
                    
54			$label_all = array_slice($label_all, 0, count($label_all) - 1);
                    
55			foreach ($label_all as $key => $label_each) {
                    
158							$matrix_value = explode('***', $element);
                    
159							$matrix_value = array_slice($matrix_value, 0, count($matrix_value) - 1);
                    
160							$mat_rows = $matrix_value[0];
                    
                
FormWizardBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 471 lines
                    
1<?php
                    
2
                    
187    // Get the steps after the current step.
                    
188    $after = array_slice($operations, array_search($this->getStep($cached_values), $steps) + 1);
                    
189    // Get the steps after the current step by key.
                    
212    // Get the steps before the current step.
                    
213    $before = array_slice($operations, 0, array_search($step, $steps));
                    
214    // Get the steps before the current step by key.
                    
361    // Slice to find the operations that occur before the current operation.
                    
362    $before = array_slice($operations, 0, array_search($step, $steps));
                    
363    // Slice to find the operations that occur after the current operation.
                    
363    // Slice to find the operations that occur after the current operation.
                    
364    $after = array_slice($operations, array_search($step, $steps) + 1);
                    
365
                    
                
msg_generator.php https://github.com/c4fcm/Community-Sign-Server.git | PHP | 359 lines
                    
1<?php
                    
2App::import('Xml'); 
                    
118        if(count($events)>0){
                    
119            $oneTimeEvents = array_slice($events,0,MsgGeneratorComponent::MAX_EVENTS_TO_SHOW,true);
                    
120			
                    
                
environment.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 195 lines
                    
1<?php // $Id$
                    
2/**
                    
4 *
                    
5 * This should really be a singleton. A PHP5 Todo I guess.
                    
6 */
                    
129
                    
130            // 2. How many old keys do we want to keep? Use array_slice to get 
                    
131            // rid of any we don't want
                    
138            if(count($openssl_history) > $openssl_generations) {
                    
139                $openssl_history = array_slice($openssl_history, 0, $openssl_generations);
                    
140            }
                    
                
VarCloner.php https://gitlab.com/nmhieucoder/laravel_tintuc | PHP | 288 lines
                    
1<?php
                    
2
                    
67
                    
68                if (\PHP_VERSION_ID >= 70400) {
                    
69                    $zvalIsRef = null !== \ReflectionReference::fromArrayElement($vals, $k);
                    
145                            // let's detect them with some black magic
                    
146                            if (\PHP_VERSION_ID < 80100 && ($a[$gid] = true) && isset($v[$gid])) {
                    
147                                unset($v[$gid]);
                    
229                        if ($maxItems < $pos += \count($a)) {
                    
230                            $a = \array_slice($a, 0, $maxItems - $pos, true);
                    
231                            if ($stub->cut >= 0) {
                    
                
MY_Router.php https://github.com/ikhattab/pyrocms.git | PHP | 306 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
2
                    
3/* PHP5 spl_autoload */
                    
4spl_autoload_register('Modules::autoload');
                    
12/**
                    
13 * Modular Separation - PHP5
                    
14 *
                    
21 *
                    
22 * Install this file as application/libraries/MY_Router.php
                    
23 *
                    
109				{
                    
110					return array_slice($segments, 1);
                    
111				}
                    
120					{
                    
121						return array_slice($segments, 1);
                    
122					}
                    
                
ResourceRegistrar.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 421 lines
                    
1<?php
                    
2
                    
124        // last segment, which will be considered the final resources name we use.
                    
125        $prefix = implode('/', array_slice($segments, 0, -1));
                    
126
                    
                
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> — 用&ldquo;自然排序&rdquo;算法对数组进行不区分大小写字母的排序</li><li><a href="function.natsort.html">natsort</a> — 用&ldquo;自然排序&rdquo;算法对数组排序</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>
                    
                
OAIDAO.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 499 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @file classes/oai/ojs/OAIDAO.inc.php
                    
5 *
                    
15
                    
16// $Id: OAIDAO.inc.php,v 1.43 2009/11/19 14:51:38 asmecher Exp $
                    
17
                    
461		if ($offset != 0) {
                    
462			$sets = array_slice($sets, $offset);
                    
463		}
                    
                
lib.php https://github.com/raymanuk/moodle.git | PHP | 354 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
17defined('MOODLE_INTERNAL') OR die('not allowed');
                    
18require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php');
                    
19
                    
31        global $DB, $CFG;
                    
32        require_once('textarea_form.php');
                    
33
                    
45        //the elements for position dropdownlist
                    
46        $positionlist = array_slice(range(0, $i_formselect_last), 1, $i_formselect_last, true);
                    
47
                    
79
                    
80        $this->item_form = new feedback_textarea_form('edit_item.php', $customdata);
                    
81    }
                    
                
Ruleset.php https://github.com/agar/less.php.git | PHP | 253 lines
                    
1<?php
                    
2
                    
35                    $ruleset->rules = array_merge(
                    
36                        array_slice($ruleset->rules, 0, $i),
                    
37                        (array) $newRules,
                    
37                        (array) $newRules,
                    
38                        array_slice($ruleset->rules, $i + 1)
                    
39                    );
                    
56                $ruleset->rules = array_merge(
                    
57                    array_slice($ruleset->rules, 0, $i),
                    
58                    $newRules,
                    
58                    $newRules,
                    
59                    array_slice($ruleset->rules, $i + 1)
                    
60                );
                    
129                        if (count($selector->elements) > count($ruleSelector->elements)) {
                    
130                            $rules = array_merge($rules, $rule->find( new \Less\Node\Selector(array_slice($selector->elements, 1)), $self, $env));
                    
131                        } else {
                    
                
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');
                    
118                    $limit = array_pop($resultList);
                    
119                    $limit['sub_tree'] = $this->limitProcessor->process(array_slice($tokens, $k));
                    
120                    $resultList[] = $limit;
                    
138                case 'FUNCTION':
                    
139                    if (PHPSQLParserConstants::isAggregateFunction($upper)) {
                    
140                        $expr_type = ExpressionType::AGGREGATE_FUNCTION;
                    
                
subscription.php https://github.com/godber/PHXdata-Website.git | PHP | 393 lines
                    
1<?php
                    
2/**
                    
185            }
                    
186            $match = array_slice($line_matches, 1);
                    
187            if (!isset($matches[$cur_page])) {
                    
                
Template.php https://github.com/radicalsuz/amp.git | PHP | 294 lines
                    
1<?php
                    
2
                    
225
                    
226            $helper_method = join( '_', array_slice( $helper_request, 2 ));
                    
227            if ( !method_exists( $this->_helpers[ $helper_key ], $helper_method )) continue;
                    
                
FMModelForm_submissions.php https://gitlab.com/hunt9310/ras | PHP | 296 lines
                    
1<?php
                    
2
                    
26		$users = explode(',', $userGroups);
                    
27		$users = array_slice($users, 0, count($users) - 1); 
                    
28		$show_submits = false;
                    
150			$label_all	= explode('#****#',$this_form->label_order);
                    
151			$label_all 	= array_slice($label_all,0, count($label_all)-1);
                    
152			foreach($label_all as $key => $label_each) {
                    
                
MethodScanner.php https://gitlab.com/yousafsyed/easternglamor | PHP | 607 lines
                    
1<?php
                    
2/**
                    
362        $p = new ParameterScanner(
                    
363            array_slice($this->tokens, $info['tokenStart'], $info['tokenEnd'] - $info['tokenStart']),
                    
364            $this->nameInformation
                    
                
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    }
                    
159    
                    
160        if (sizeof($GLOBALS['log4php.LoggerNDC.ht']) > 0) {
                    
161            return array_pop($GLOBALS['log4php.LoggerNDC.ht']);
                    
235            if (LoggerNDC::getDepth() > $maxDepth) {
                    
236                $GLOBALS['log4php.LoggerNDC.ht'] = array_slice($GLOBALS['log4php.LoggerNDC.ht'], $maxDepth);
                    
237            }
                    
                
BaseModule.php https://github.com/rasstroen/ljrate.git | PHP | 250 lines
                    
1<?php
                    
2
                    
103			$i++;
                    
104			$name = Request::$pageName . '_' . $this->moduleName . '_' . (implode('', array_slice($params,0,$i)));
                    
105			Cache::drop($name, Cache::DATA_TYPE_XML);
                    
                
qa-feed.php https://bitbucket.org/harshjv/q2a-bootstrap.git | PHP | 432 lines
                    
1<?php
                    
2
                    
8	
                    
9	File: qa-include/qa-feed.php
                    
10	Version: See define()s at top of qa-include/qa-base.php
                    
23
                    
24	More about this license: http://www.question2answer.org/license.php
                    
25*/
                    
31
                    
32	@ini_set('display_errors', 0); // we don't want to show PHP errors to RSS readers
                    
33
                    
35
                    
36	require_once QA_INCLUDE_DIR.'qa-app-options.php';
                    
37
                    
109	$feedtype=@$requestlowerparts[1];
                    
110	$feedparams=array_slice($requestlowerparts, 2);
                    
111	
                    
                
Base.php https://github.com/billortell/phrozn.git | PHP | 532 lines
                    
1<?php
                    
2/**
                    
342                if ((($i + 1) < $mx) && is_array($value)) {
                    
343                    return $this->locateParam($value, implode('.', array_slice($keys, $i)));
                    
344                }
                    
                
assets_model.php https://github.com/be3/FUEL-CMS.git | PHP | 331 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
3// not pulling from the database so just extend the normal model
                    
4require_once(APPPATH.'libraries/Validator.php');
                    
5
                    
103		// do a check for empty limit values to prevent issues found where an empty $limit value would return nothing in 5.16
                    
104		$return = (empty($limit)) ? array_slice($return, $offset) : array_slice($return, $offset, $limit);
                    
105		
                    
                
Writer.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 311 lines
                    
1<?php namespace Illuminate\Log;
                    
2
                    
257
                    
258		return call_user_func_array(array($this, $level), array_slice(func_get_args(), 1));
                    
259	}
                    
                
templates.php https://github.com/sherdog/GitWitty.git | PHP | 364 lines
                    
1<?php

                    
2/**

                    
2/**

                    
3 * @file       templates.php

                    
4 * @version    1.2.0 RC4

                    
20 *             Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

                    
21 *             A full text version of the GNU GPL version 2 can be found in the LICENSE.php file.

                    
22 * @par History:

                    
35

                    
36require_once( JPATH_COMPONENT_ADMINISTRATOR .DS. 'classes' .DS. 'site.php');

                    
37require_once( JPATH_COMPONENT_ADMINISTRATOR .DS. 'classes' .DS. 'template.php');

                    
37require_once( JPATH_COMPONENT_ADMINISTRATOR .DS. 'classes' .DS. 'template.php');

                    
38require_once( JPATH_COMPONENT_ADMINISTRATOR .DS. 'classes' .DS. 'utils.php');

                    
39

                    
64	{

                    
65	   $filename = JPATH_MULTISITES .DS. 'config_templates.php';

                    
66	   return $filename;

                    
                
ecofilm-metro.php https://gitlab.com/eco-film-festival/ecof-developer-2016 | PHP | 302 lines
                    
1<?
                    
2require 'ecofilm-csv.php';
                    
3
                    
37
                    
38		    if (!$full) $string = array_slice($string, 0, 1);
                    
39		    return $string ? implode(', ', $string) . ' ago' : 'just now';
                    
238				<? foreach ($xml->channel->item as $item) : ?>
                    
239				<?php
                    
240					list($titulo, $fuente) = split(" - ", $item->title);
                    
                
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	        }
                    
                
class-wp-themes-list-table.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 309 lines
                    
96			if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) {
                    
97				printf( __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> or <a href="%2$s">install</a> more themes.' ), network_admin_url( 'site-themes.php?id=' . $blog_id ), network_admin_url( 'theme-install.php' ) );
                    
98
                    
107			if ( current_user_can( 'install_themes' ) ) {
                    
108				printf( __( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress Theme Directory at any time: just click on the <a href="%s">Install Themes</a> tab above.' ), admin_url( 'theme-install.php' ) );
                    
109
                    
140		<div id="availablethemes">
                    
141			<?php $this->display_rows_or_placeholder(); ?>
                    
142		</div>
                    
211				<?php if ( $screenshot = $theme->get_screenshot() ) : ?>
                    
212					<img src="<?php echo esc_url( $screenshot ); ?>" alt="" />
                    
213				<?php endif; ?>
                    
235			<div class="themedetaildiv hide-if-js">
                    
236				<p><strong><?php _e('Version:'); ?></strong> <?php echo $version; ?></p>
                    
237				<p><?php echo $theme->display('Description'); ?></p>
                    
                
elements_edit.php https://gitlab.com/x33n/platform | PHP | 169 lines
                    
1<?php
                    
2if (!$request_parameters) {
                    
90			arsort($tmp_locations_array); // sort temp array most to least
                    
91			$tmp_locations_array = array_slice($tmp_locations_array, 0, 5); // trim temp array to no more than 5
                    
92
                    
                
Router.php https://github.com/iqwebgroup/Kohana-Framework.git | PHP | 304 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: Router.php 4350 2009-05-14 18:58:18Z zombor $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
152				// Set arguments
                    
153				Router::$arguments = array_slice(Router::$rsegments, $method_segment + 1);
                    
154			}
                    
167	/**
                    
168	 * Attempts to determine the current URI using CLI, GET, PATH_INFO, ORIG_PATH_INFO, or PHP_SELF.
                    
169	 *
                    
212		}
                    
213		elseif (isset($_SERVER['PHP_SELF']) AND $_SERVER['PHP_SELF'])
                    
214		{
                    
                
authentication.php https://github.com/quarkness/piwik.git | PHP | 238 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage WebTester
                    
6 *  @version    $Id: authentication.php 1720 2008-04-07 02:32:43Z lastcraft $
                    
7 */
                    
10 */
                    
11require_once(dirname(__FILE__) . '/http.php');
                    
12
                    
59            if ($first[$i] != $second[$i]) {
                    
60                return implode('/', array_slice($first, 0, $i)) . '/';
                    
61            }
                    
                
ArrayCollection.php https://github.com/webvpro/RUA-CORE.git | PHP | 441 lines
                    
1<?php
                    
2/*
                    
24/**
                    
25 * An ArrayCollection is a Collection implementation that wraps a regular PHP array.
                    
26 *
                    
51    /**
                    
52     * Gets the PHP array representation of this collection.
                    
53     *
                    
53     *
                    
54     * @return array The PHP array representation of this collection.
                    
55     */
                    
438    {
                    
439        return array_slice($this->_elements, $offset, $length, true);
                    
440    }
                    
                
DecisionTree.php https://github.com/mackensen/moodle.git | PHP | 484 lines
                    
1<?php
                    
2
                    
4
                    
5namespace Phpml\Classification;
                    
6
                    
6
                    
7use Phpml\Classification\DecisionTree\DecisionTreeLeaf;
                    
8use Phpml\Exception\InvalidArgumentException;
                    
8use Phpml\Exception\InvalidArgumentException;
                    
9use Phpml\Helper\Predictable;
                    
10use Phpml\Helper\Trainable;
                    
10use Phpml\Helper\Trainable;
                    
11use Phpml\Math\Statistic\Mean;
                    
12
                    
95        } elseif (count($this->columnNames) > $this->featureCount) {
                    
96            $this->columnNames = array_slice($this->columnNames, 0, $this->featureCount);
                    
97        } elseif (count($this->columnNames) < $this->featureCount) {
                    
                
AssetBuildTask.php https://github.com/renan/asset_compress.git | PHP | 291 lines
                    
1<?php
                    
2App::uses('Shell', 'Console');
                    
146			$method = $call[2][1];
                    
147			$args = array_slice($call, 3);
                    
148
                    
                
File.php https://bitbucket.org/kdms/sh-magento.git | PHP | 275 lines
                    
1<?php
                    
2/**
                    
137
                    
138        $slice = array_slice($this->_data[$type], $offset, $count);
                    
139        if (empty($slice)) {
                    
                
modal.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 191 lines
                    
93	<div class="btn-group pull-right">
                    
94		<button id="toolbar-load" type="submit" class="btn hasTooltip" aria-label="<?php echo JText::_('COM_CONTENTHISTORY_BUTTON_LOAD_DESC'); ?>" title="<?php echo JText::_('COM_CONTENTHISTORY_BUTTON_LOAD_DESC'); ?>" data-url="<?php echo JRoute::_($loadUrl); ?>">
                    
95			<span class="icon-upload" aria-hidden="true"></span><span class="hidden-phone"><?php echo JText::_('COM_CONTENTHISTORY_BUTTON_LOAD'); ?></span></button>
                    
95			<span class="icon-upload" aria-hidden="true"></span><span class="hidden-phone"><?php echo JText::_('COM_CONTENTHISTORY_BUTTON_LOAD'); ?></span></button>
                    
96		<button id="toolbar-preview" type="button" class="btn hasTooltip" aria-label="<?php echo JText::_('COM_CONTENTHISTORY_BUTTON_PREVIEW_DESC'); ?>" title="<?php echo JText::_('COM_CONTENTHISTORY_BUTTON_PREVIEW_DESC'); ?>" data-url="<?php echo JRoute::_('index.php?option=com_contenthistory&view=preview&layout=preview&tmpl=component&' . JSession::getFormToken() . '=1'); ?>">
                    
97			<span class="icon-search" aria-hidden="true"></span><span class="hidden-phone"><?php echo JText::_('COM_CONTENTHISTORY_BUTTON_PREVIEW'); ?></span></button>
                    
97			<span class="icon-search" aria-hidden="true"></span><span class="hidden-phone"><?php echo JText::_('COM_CONTENTHISTORY_BUTTON_PREVIEW'); ?></span></button>
                    
98		<button id="toolbar-compare" type="button" class="btn hasTooltip" aria-label="<?php echo JText::_('COM_CONTENTHISTORY_BUTTON_COMPARE_DESC'); ?>" title="<?php echo JText::_('COM_CONTENTHISTORY_BUTTON_COMPARE_DESC'); ?>" data-url="<?php echo JRoute::_('index.php?option=com_contenthistory&view=compare&layout=compare&tmpl=component&' . JSession::getFormToken() . '=1'); ?>">
                    
99			<span class="icon-zoom-in" aria-hidden="true"></span><span class="hidden-phone"><?php echo JText::_('COM_CONTENTHISTORY_BUTTON_COMPARE'); ?></span></button>
                    
99			<span class="icon-zoom-in" aria-hidden="true"></span><span class="hidden-phone"><?php echo JText::_('COM_CONTENTHISTORY_BUTTON_COMPARE'); ?></span></button>
                    
100		<button onclick="if (document.adminForm.boxchecked.value==0){<?php echo $deleteMessage; ?>}else{ Joomla.submitbutton('history.keep')}" class="btn pointer hasTooltip" aria-label="<?php echo JText::_('COM_CONTENTHISTORY_BUTTON_KEEP_DESC'); ?>" title="<?php echo JText::_('COM_CONTENTHISTORY_BUTTON_KEEP_DESC'); ?>">
                    
101			<span class="icon-lock" aria-hidden="true"></span><span class="hidden-phone"><?php echo JText::_('COM_CONTENTHISTORY_BUTTON_KEEP'); ?></span></button>
                    
101			<span class="icon-lock" aria-hidden="true"></span><span class="hidden-phone"><?php echo JText::_('COM_CONTENTHISTORY_BUTTON_KEEP'); ?></span></button>
                    
102		<button onclick="if (document.adminForm.boxchecked.value==0){<?php echo $deleteMessage; ?>}else{ Joomla.submitbutton('history.delete')}" class="btn pointer hasTooltip" aria-label="<?php echo JText::_('COM_CONTENTHISTORY_BUTTON_DELETE_DESC'); ?>" title="<?php echo JText::_('COM_CONTENTHISTORY_BUTTON_DELETE_DESC'); ?>">
                    
103			<span class="icon-delete" aria-hidden="true"></span><span class="hidden-phone"><?php echo JText::_('COM_CONTENTHISTORY_BUTTON_DELETE'); ?></span></button>
                    
                
CompletionTrait.php https://github.com/composer/composer.git | PHP | 209 lines
                    
1<?php declare(strict_types=1);
                    
2
                    
84                    // to reduce noise, when no text is yet entered we list only two entries for ext- and lib- prefixes
                    
85                    $hintsToFind = ['ext-' => 0, 'lib-' => 0, 'php' => 99, 'composer' => 99];
                    
86                    foreach ($platformRepo->getPackages() as $pkg) {
                    
168
                    
169                return array_merge($pinned, array_slice($results, 0, $max - \count($pinned)));
                    
170            }
                    
171
                    
172            return array_slice($results, 0, $max);
                    
173        };
                    
177     * Suggest package names available on all configured repositories or
                    
178     * platform packages from the ones available on the currently-running PHP
                    
179     */
                    
182        return function (CompletionInput $input): array {
                    
183            if (Preg::isMatch('{^(ext|lib|php)(-|$)|^com}', $input->getCompletionValue())) {
                    
184                $matches = $this->suggestPlatformPackage()($input);
                    
                
SubformState.php https://gitlab.com/mohamed_hussein/prodt | PHP | 154 lines
                    
1<?php
                    
2
                    
135    if (is_array($limit_validation_errors)) {
                    
136      return array_slice($limit_validation_errors, count($this->getParents('#parents')));
                    
137
                    
                
lib.php https://github.com/cgtaylor/moodle.git | PHP | 234 lines
                    
1<?php
                    
2defined('MOODLE_INTERNAL') OR die('not allowed');
                    
2defined('MOODLE_INTERNAL') OR die('not allowed');
                    
3require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php');
                    
4require_once($CFG->libdir.'/formslib.php');
                    
21        global $DB, $CFG;
                    
22        require_once('label_form.php');
                    
23
                    
35        //the elements for position dropdownlist
                    
36        $positionlist = array_slice(range(0,$i_formselect_last),1,$i_formselect_last,true);
                    
37
                    
60        //build the form
                    
61        $this->item_form = new feedback_label_form('edit_item.php', array('item'=>$item, 'common'=>$commonparams, 'positionlist'=>$positionlist, 'position'=>$position, 'presentationoptions'=>$this->presentationoptions));
                    
62    }
                    
119
                    
120        require_once($CFG->libdir . '/filelib.php');
                    
121>>>>>>> 54b7b5993fbd4386eb4eadb4f97da8d41dfa16bf
                    
                
agreement.php https://gitlab.com/alexprowars/bitrix | PHP | 585 lines
                    
1<?php
                    
2/**
                    
459				$text = array_merge(
                    
460					array_slice($text, 0, 2),
                    
461					[implode('', array_slice($text, 2))]
                    
                
authentication.php https://bitbucket.org/laborautonomo/laborautonomo-site.git | PHP | 237 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage WebTester
                    
6 *  @version    $Id: authentication.php 1784 2008-04-26 13:07:14Z pp11 $
                    
7 */
                    
10 */
                    
11require_once(dirname(__FILE__) . '/http.php');
                    
12
                    
59            if ($first[$i] != $second[$i]) {
                    
60                return implode('/', array_slice($first, 0, $i)) . '/';
                    
61            }
                    
                
PubMedExportPlugin.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 236 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @file PubMedExportPlugin.inc.php
                    
5 *
                    
13 *
                    
14 * $Id: PubMedExportPlugin.inc.php,v 1.9 2007/11/07 21:54:03 asmecher Exp $
                    
15 */
                    
102				$totalArticles = count($articleIds);
                    
103				if ($rangeInfo->isValid()) $articleIds = array_slice($articleIds, $rangeInfo->getCount() * ($rangeInfo->getPage()-1), $rangeInfo->getCount());
                    
104				$iterator = &new VirtualArrayIterator(ArticleSearch::formatResults($articleIds), $totalArticles, $rangeInfo->getPage(), $rangeInfo->getCount());
                    
                
common.php https://gitlab.com/hunt9310/ras | PHP | 192 lines
                    
1<?php
                    
2/**
                    
84			if ( ! function_exists( 'WP_Filesystem' ) ) {
                    
85				include_once ABSPATH . 'wp-admin/includes/file.php';
                    
86			}
                    
141		$arr     = explode( ' ', $content );
                    
142		$arr     = array_slice( $arr, 0, 10 );
                    
143
                    
160		if ( $limit_type == 'words' ) {
                    
161			$content = implode( ' ', array_slice( explode( ' ', $content ), 0, intval( $limit_count ) ) );
                    
162		} else {
                    
                
Batch.php https://github.com/michaelmcandrew/cic.git | PHP | 256 lines
                    
1<?php
                    
2
                    
36
                    
37require_once 'CRM/Profile/Form.php';
                    
38require_once 'CRM/Contribute/Form/Task.php';
                    
79        //get the contact read only fields to display.
                    
80        require_once 'CRM/Core/BAO/Preferences.php';
                    
81        $readOnlyFields = array_merge( array( 'sort_name' => ts( 'Name' ) ),
                    
85        $returnProperties  = array_fill_keys( array_keys( $readOnlyFields ), 1 );
                    
86        require_once 'CRM/Contact/BAO/Contact/Utils.php';
                    
87        $contactDetails = CRM_Contact_BAO_Contact_Utils::contactDetails( $this->_contributionIds, 
                    
105        }
                    
106        require_once "CRM/Core/BAO/UFGroup.php";
                    
107        require_once "CRM/Core/BAO/CustomGroup.php";
                    
131
                    
132        $this->_fields  = array_slice($this->_fields, 0, $this->_maxFields);
                    
133        
                    
                
Modules.php https://bitbucket.org/goandget/goportal.git | PHP | 205 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
2
                    
3/* PHP5 spl_autoload */
                    
4spl_autoload_register('Modules::autoload');
                    
6/**
                    
7 * Modular Extensions - PHP5
                    
8 *
                    
15 *
                    
16 * Install this file as application/libraries/Modules.php
                    
17 *
                    
63				$args = func_get_args();
                    
64				$output = call_user_func_array(array($class, $method), array_slice($args, 1));
                    
65				$buffer = ob_get_clean();
                    
                
new.php https://github.com/md-tech/openemr.git | PHP | 233 lines
                    
18  $id = $newid;
                    
19  formJump("${rootdir}/patient_file/encounter/view_form.php?formname=${fdir}&id=${newid}");
                    
20  exit;
                    
28<head>
                    
29<?php html_header_show();?>
                    
30<title>Form: Routine screening record</title>
                    
30<title>Form: Routine screening record</title>
                    
31<link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
                    
32<link rel="stylesheet" href="../../acog.css" type="text/css">
                    
38
                    
39<?php
                    
40   $fres=sqlStatement("select * from patient_data where pid='".$pid."'");
                    
46
                    
47<form action="<?php echo $rootdir;?>/forms/routine_screening_record/save.php?mode=new" method="post" enctype="multipart/form-data" name="my_form">
                    
48<?php include("../../acog_menu.inc"); ?>
                    
                
field.php https://bitbucket.org/sriedel/iccrm-wip.git | PHP | 604 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2012 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
269	{
                    
270		$args = array_slice(func_get_args(), 1);
                    
271		$this->rules[] = array($callback, $args);
                    
                
Csv.php https://github.com/imagesdesmaths/idm.git | PHP | 427 lines
                    
1<?php
                    
2/**
                    
146            // get rid of the columns names
                    
147            $returned = array_slice($returned, 1);
                    
148
                    
                
locallib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 193 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
85        if ($total > 10) {
                    
86            $shortnames = array_slice($shortnames, 0, 10);
                    
87            $diff = $total - count($shortnames);
                    
                
AvisotaBackend.php https://github.com/avisota/contao-core.git | PHP | 292 lines
                    
1<?php
                    
2
                    
6 *
                    
7 * PHP version 5
                    
8 *
                    
79				);
                    
80				$this->redirect('contao/main.php?act=error');
                    
81			}
                    
114				$label .= '<div style="padding: 1px 0;">' .
                    
115					'<a href="contao/main.php?do=avisota_recipients&amp;showlist=' . $row['id'] . '">' .
                    
116					$this->generateImage('system/modules/avisota/html/recipients.png', '') .
                    
128				$label .= '<div style="padding: 1px 0;">' .
                    
129					'<a href="contao/main.php?do=member&amp;avisota_showlist=' . $row['id'] . '">' .
                    
130					$this->generateImage('system/themes/default/images/member.gif', '') .
                    
179				while ($objCategory->next()) {
                    
180					$arrCustomModules['avisota_newsletter_' . $objCategory->id] = array_slice($arrModules['avisota']['modules']['avisota_newsletter'], 0);
                    
181					if ($objCategory->menuIcon) {
                    
                
Batch.php https://github.com/timstephenson/NatureBridge.git | PHP | 271 lines
                    
1<?php
                    
2
                    
36
                    
37require_once 'CRM/Profile/Form.php';
                    
38require_once 'CRM/Member/Form/Task.php';
                    
79        //get the contact read only fields to display.
                    
80        require_once 'CRM/Core/BAO/Preferences.php';
                    
81        $readOnlyFields = array_merge( array( 'sort_name' => ts( 'Name' ) ),
                    
85        $returnProperties  = array_fill_keys( array_keys( $readOnlyFields ), 1 );
                    
86        require_once 'CRM/Contact/BAO/Contact/Utils.php';
                    
87        $contactDetails = CRM_Contact_BAO_Contact_Utils::contactDetails( $this->_memberIds, 
                    
105        }
                    
106        require_once "CRM/Core/BAO/UFGroup.php";
                    
107        require_once "CRM/Core/BAO/CustomGroup.php";
                    
131
                    
132        $this->_fields  = array_slice($this->_fields, 0, $this->_maxFields);
                    
133        
                    
                
Main.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 296 lines
                    
1<?php
                    
2/**
                    
66		if ( ! class_exists( 'Tribe__Autoloader' ) ) {
                    
67			require_once dirname( __FILE__ ) . '/Autoloader.php';
                    
68		}
                    
89
                    
90		require_once $this->plugin_path . 'src/functions/template-tags/general.php';
                    
91		require_once $this->plugin_path . 'src/functions/template-tags/date.php';
                    
213			$position     = array_search( $key, array_keys( $source_array ) ) + 1;
                    
214			$source_array = array_slice( $source_array, 0, $position, true ) + $insert_array + array_slice( $source_array, $position, null, true );
                    
215		} else {
                    
234			$position     = array_search( $key, array_keys( $source_array ) );
                    
235			$source_array = array_slice( $source_array, 0, $position, true ) + $insert_array + array_slice( $source_array, $position, null, true );
                    
236		} else {
                    
244	/**
                    
245	 * Helper function for getting Post Id. Accepts null or a post id. If no $post object exists, returns false to avoid a PHP NOTICE
                    
246	 *
                    
                
manager.php https://gitlab.com/Red54/core | PHP | 296 lines
                    
1<?php
                    
2/**
                    
281			if($limit === -1) {
                    
282				$groupUsers = array_slice($groupUsers, $offset);
                    
283			} else {
                    
283			} else {
                    
284				$groupUsers = array_slice($groupUsers, $offset, $limit);
                    
285			}
                    
                
tiled-gallery-shape.php https://gitlab.com/chernushov881/charity-fund | PHP | 209 lines
                    
1<?php
                    
2class Jetpack_Tiled_Gallery_Shape {
                    
10	public function sum_ratios( $number_of_images = 3 ) {
                    
11		return array_sum( array_slice( wp_list_pluck( $this->images, 'ratio' ), 0, $number_of_images ) );
                    
12	}
                    
18	public function is_not_as_previous( $n = 1 ) {
                    
19		return ! in_array( get_class( $this ), array_slice( self::$shapes_used, -$n ) );
                    
20	}
                    
                
ValidationRuleParser.php https://gitlab.com/hoangduys4k5/laravelproject | PHP | 338 lines
                    
1<?php
                    
2
                    
244    {
                    
245        return [Str::studly(trim(Arr::get($rule, 0, ''))), array_slice($rule, 1)];
                    
246    }
                    
                
BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
                    
1<?php
                    
2/**
                    
56        if ($highlight) {
                    
57            $result = highlight_string("<?php\n" . self::$_output, true);
                    
58            self::$_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
120                    if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) {
                    
121                        $dumpValues = $var->__debugInfo();
                    
141     *
                    
142     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
143     * and the evaluation result will give back the variable value.
                    
147     *
                    
148     * It also handles objects by using the PHP functions serialize() and unserialize().
                    
149     *
                    
149     *
                    
150     * PHP 5.4 or above is required to parse the exported value.
                    
151     *
                    
                
functions.file.php https://github.com/DMeganoski/Gallery-Designer.git | PHP | 261 lines
                    
1<?php
                    
2
                    
23					if (strpos($String, 'require') === 0
                    
24						|| in_array($String, array('<?php', '?>'))) unset($FileData[$i]);
                    
25				}
                    
30			}
                    
31			return file_put_contents($File, "<?php\n".$NewFileContent);
                    
32		}
                    
51
                    
52			$OtherTokens = array_slice($AllTokens, $N);
                    
53			$FileTokens = array();
                    
55				if (count($Tk) == 1 && $Tk[0] == ';') {
                    
56					$FileTokens = array_slice($OtherTokens, 0, $M);
                    
57					break;
                    
186
                    
187# http://php.net/manual/en/function.readdir.php
                    
188/**
                    
                
export_all.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 108 lines
                    
1<?php
                    
2
                    
97		$n = floor(count($tables_sauvegardees)/2);
                    
98		$corps .= "<div style='width:49%;float:left;'><ul><li>" . join('</li><li>', array_slice($tables_sauvegardees,0,$n)) . "</li></ul></div>"
                    
99		  . "<div style='width:49%;float:left;'><ul><li>" . join('</li><li>', array_slice($tables_sauvegardees,$n)) . "</li></ul></div>"
                    
                
StandardTagFactory.php https://gitlab.com/nmhieucoder/laravel_tintuc | PHP | 347 lines
                    
1<?php
                    
2
                    
5/**
                    
6 * This file is part of phpDocumentor.
                    
7 *
                    
10 *
                    
11 * @link http://phpdoc.org
                    
12 */
                    
13
                    
14namespace phpDocumentor\Reflection\DocBlock;
                    
15
                    
16use InvalidArgumentException;
                    
17use phpDocumentor\Reflection\DocBlock\Tags\Author;
                    
18use phpDocumentor\Reflection\DocBlock\Tags\Covers;
                    
18use phpDocumentor\Reflection\DocBlock\Tags\Covers;
                    
19use phpDocumentor\Reflection\DocBlock\Tags\Deprecated;
                    
20use phpDocumentor\Reflection\DocBlock\Tags\Generic;
                    
                
view.html.php https://bitbucket.org/talueses/joomla-cms.git | PHP | 317 lines
                    
1<?php
                    
2/**
                    
191		// feed elements
                    
192		$newsfeed->items = array_slice($newsfeed->items, 0, $newsfeed->numarticles);
                    
193
                    
                
lib.php https://bitbucket.org/ngmares/moodle.git | PHP | 399 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
17defined('MOODLE_INTERNAL') OR die('not allowed');
                    
18require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php');
                    
19
                    
31        global $DB, $CFG;
                    
32        require_once('info_form.php');
                    
33
                    
45        //the elements for position dropdownlist
                    
46        $positionlist = array_slice(range(0, $i_formselect_last), 1, $i_formselect_last, true);
                    
47
                    
59        //build the form
                    
60        $this->item_form = new feedback_info_form('edit_item.php',
                    
61                                                  array('item'=>$item,
                    
                
SpecialGlobalGroupPermissions.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 371 lines
                    
1<?php
                    
2# This file is part of MediaWiki.
                    
203
                    
204		$checkboxes1 = array_slice( $checkboxes, 0, $firstCol );
                    
205		$checkboxes2 = array_slice( $checkboxes, $firstCol );
                    
                
interp-builtin.cpp https://gitlab.com/alvinahmadov2/hhvm | C++ | 374 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
15*/
                    
16#include "hphp/hhbbc/interp.h"
                    
17
                    
                
VarCloner.php https://github.com/FabienD/symfony.git | PHP | 248 lines
                    
1<?php
                    
2
                    
189                        if ($maxItems < $pos += \count($a)) {
                    
190                            $a = \array_slice($a, 0, $maxItems - $pos, true);
                    
191                            if ($stub->cut >= 0) {
                    
                
ms-deprecated.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 347 lines
                    
1<?php
                    
2/**
                    
179	if ( $num == 'all' )
                    
180		return array_slice( $blogs, $start, count( $blogs ) );
                    
181	else
                    
181	else
                    
182		return array_slice( $blogs, $start, $num );
                    
183}
                    
197			$most_active[ $details['blog_id'] ] = $details['postcount'];
                    
198			$blog_list[ $details['blog_id'] ] = $details; // array_slice() removes keys!!
                    
199		}
                    
217	}
                    
218	return array_slice( $most_active, 0, $num );
                    
219}
                    
                
cron.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 409 lines
                    
1<?php
                    
2/**
                    
159		_deprecated_argument( __FUNCTION__, '3.0', __('This argument has changed to an array to match the behavior of the other cron functions.') );
                    
160		$args = array_slice( func_get_args(), 1 );
                    
161	}
                    
239
                    
240		WP_DEBUG ? include_once( ABSPATH . 'wp-cron.php' ) : @include_once( ABSPATH . 'wp-cron.php' );
                    
241		return;
                    
246
                    
247	$cron_url = site_url( 'wp-cron.php?doing_wp_cron=' . $doing_wp_cron );
                    
248	wp_remote_post( $cron_url, array( 'timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters( 'https_local_ssl_verify', true ) ) );
                    
259
                    
260	// Prevent infinite loops caused by lack of wp-cron.php
                    
261	if ( strpos($_SERVER['REQUEST_URI'], '/wp-cron.php') !== false || ( defined('DISABLE_WP_CRON') && DISABLE_WP_CRON ) )
                    
                
AuthorizeNetCP.php https://gitlab.com/najomie/fit-hippie | PHP | 227 lines
                    
1<?php
                    
2/**
                    
123                // Set all fields
                    
124                $this->version              = array_pop(array_slice(explode('"', $response), 1,1));
                    
125                $this->response_code        = (string)$this->xml->ResponseCode;
                    
                
URI.php https://bitbucket.org/inventxo/inventxo_root_php.git | PHP | 654 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
89			// Is the request coming from the command line?
                    
90			if (php_sapi_name() == 'cli' or defined('STDIN'))
                    
91			{
                    
218
                    
219		$uri = parse_url($uri, PHP_URL_PATH);
                    
220
                    
236	{
                    
237		$args = array_slice($_SERVER['argv'], 1);
                    
238
                    
254		{
                    
255			// preg_quote() in PHP 5.3 escapes -, so the str_replace() and addition of - to preg_quote() is to maintain backwards
                    
256			// compatibility as many are unaware of how characters in the permitted_uri_chars will be parsed as a regex pattern
                    
                
 

Source

Language