PageRenderTime 358ms queryTime 49ms sortTime 7ms getByIdsTime 146ms findMatchingLines 99ms

100+ results results for 'php array_reverse' (358 ms)

Not the results you expected?
horizontal_bar.php https://github.com/fusenigk/mantisbt-1.git | PHP | 292 lines
                    
1<?php
                    
2/**
                    
271            {
                    
272                $dataset->yAxis->default->addData( array_reverse( $labels ) );
                    
273            }
                    
275            {
                    
276                $this->elements['yAxis']->addData( array_reverse( $labels ) );
                    
277            }
                    
                
engine.php https://bitbucket.org/lothario/fifa-tourny.git | PHP | 555 lines
                    
1<?php
                    
2//Setup variables
                    
74	
                    
75	header('Location: ./index.php');
                    
76}
                    
126	//Seed teams, and place them in the correct stage
                    
127	foreach(array_reverse($stages, true) as $id => $stage)
                    
128	{
                    
152	
                    
153	header('Location: ./index.php');
                    
154}
                    
279
                    
280	header('Location: ./index.php');
                    
281}
                    
300	}
                    
301	header('Location: ./index.php');
                    
302}
                    
                
MaildirFolderTest.php https://github.com/sidealice/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirFolderTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
101    {
                    
102        foreach (array_reverse($this->_subdirs) as $dir) {
                    
103            foreach (array('cur', 'new') as $subdir) {
                    
203        try {
                    
204            // explicit call of __toString() needed for PHP < 5.2
                    
205            $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');
                    
235
                    
236            // explicit call of __toString() needed for PHP < 5.2
                    
237            $found_folders[$folder->__toString()] = $localName;
                    
257
                    
258            // explicit call of __toString() needed for PHP < 5.2
                    
259            $found_folders[$folder->__toString()] = $localName;
                    
                
arr.php https://bitbucket.org/i1598/caiyun_stat.git | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
343	{
                    
344		$array = array_reverse($array, TRUE);
                    
345		$array[$key] = $val;
                    
345		$array[$key] = $val;
                    
346		$array = array_reverse($array, TRUE);
                    
347
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies one or more
                    
353	 * callbacks to all elements in an array, including sub-arrays.
                    
403	 * Merges one or more arrays recursively and preserves all keys.
                    
404	 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)!
                    
405	 *
                    
                
sfMessageSource_MySQL.class.php https://github.com/richhl/kalturaCE.git | PHP | 453 lines
                    
1<?php
                    
2
                    
15 * @author     Wei Zhuo <weizhuo[at]gmail[dot]com>
                    
16 * @version    $Id: sfMessageSource_MySQL.class.php 3148 2007-01-04 19:34:28Z fabien $
                    
17 * @package    symfony
                    
23 */
                    
24require_once(dirname(__FILE__).'/util.php');
                    
25
                    
245
                    
246    return array_reverse($catalogues);
                    
247  }
                    
                
sfWebDebugPanelView.class.php https://github.com/pixel-cookers/symfony_bootstrap.git | PHP | 366 lines
                    
1<?php
                    
2
                    
16 * @author      Kris Wallsmith <kris.wallsmith@symfony-project.com>
                    
17 * @version     SVN: $Id: sfWebDebugPanelView.class.php 24069 2009-11-17 06:59:01Z Kris.Wallsmith $
                    
18 */
                    
79   */
                    
80  protected function getLastTemplate($class = 'sfPHPView')
                    
81  {
                    
81  {
                    
82    foreach (array_reverse($this->webDebug->getLogger()->getLogs()) as $log)
                    
83    {
                    
                
Ftp.php https://gitlab.com/vincetang/mtweb | PHP | 398 lines
                    
1<?php
                    
2
                    
153    {
                    
154        $stream = fopen('php://temp', 'w+b');
                    
155        fwrite($stream, $contents);
                    
227        $connection = $this->getConnection();
                    
228        $contents = array_reverse($this->listDirectoryContents($dirname));
                    
229
                    
359    {
                    
360        $stream = fopen('php://temp', 'w+');
                    
361        $result = ftp_fget($this->getConnection(), $stream, $path, $this->transferMode);
                    
                
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            }
                    
                
Local.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 401 lines
                    
1<?php
                    
2
                    
321        $contents = $this->listContents($dirname, true);
                    
322        $contents = array_reverse($contents);
                    
323
                    
                
Import.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 402 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Import.php 48519 2012-02-03 23:18:52Z btowles $
                    
4 *
                    
27 * @author      Jonathan H. Wage <jwage@mac.com>
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @link        www.doctrine-project.org
                    
114        if ( ! $append) {
                    
115            $this->purge(array_reverse(array_keys($array)));
                    
116        }
                    
368                $children = (array) $nestedSet['children'];
                    
369                $children = array_reverse($children, true);
                    
370                unset($nestedSet['children']);
                    
                
cache.php https://github.com/weissms/owb-mirror.git | PHP | 429 lines
                    
1<?php
                    
2function wp_cache_add($key, $data, $flag = '', $expire = 0) {
                    
52
                    
53define('CACHE_SERIAL_HEADER', "<?php\n/*");
                    
54define('CACHE_SERIAL_FOOTER', "*/\n?".">");
                    
149
                    
150		$cache_file = $this->cache_dir.$this->get_group_dir($group)."/".$this->hash($id).'.php';
                    
151		if (!file_exists($cache_file)) {
                    
203
                    
204			if (!file_exists($this->cache_dir.$make_dir."index.php")) {
                    
205				$file_perms = $perms & 0000666;
                    
205				$file_perms = $perms & 0000666;
                    
206				@ touch($this->cache_dir.$make_dir."index.php");
                    
207				@ chmod($this->cache_dir.$make_dir."index.php", $file_perms);
                    
241
                    
242		$stack = array_reverse($stack);  // Last added dirs are deepest
                    
243		foreach($stack as $dir) {
                    
                
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
                    
230            for ($i = 0; $i < $file_cnt; $i++) {
                    
231                if (preg_match('/^(\d+)_(.*)\.php$/', $files[$i], $matches)) {
                    
232                    if (count($matches) == 3) {
                    
239        if ($direction == 'down') {
                    
240            $valid_files = array_reverse($valid_files);
                    
241        }
                    
247            $migration = $valid_files[$i];
                    
248            if (preg_match('/^(\d+)_(.*)\.php$/', $migration, $matches)) {
                    
249                $files[] = array(
                    
                
AuthHelper.php https://gitlab.com/joepa37/ierschool.dev | PHP | 315 lines
                    
1<?php
                    
2
                    
117
                    
118        // If it's not clean url like localhost/folder/index.php/bla-bla then remove
                    
119        // baseUrl and leave only relative path 'bla-bla'
                    
209
                    
210        return array_reverse(array_combine($result, $result));
                    
211    }
                    
300                }
                    
301                elseif ( strcmp(substr($file, -14), 'Controller.php') === 0 )
                    
302                {
                    
                
Cast.php https://bitbucket.org/blackriver/openx.git | PHP | 546 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * LICENSE: This source file is subject to version 3.0 of the PHP license
                    
10 * that is available through the world-wide-web at the following URI:
                    
10 * that is available through the world-wide-web at the following URI:
                    
11 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
13 * send a note to license@php.net so we can mail you a copy immediately.
                    
14 *
                    
18 * @copyright  1997-2006 The PHP Group
                    
19 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
20 * @version    CVS: $Id: Cast.php 4533 2007-02-19 16:52:09Z andrew.hill@openads.org $
                    
                
memory.php https://bitbucket.org/crevillo/enetcall.git | PHP | 550 lines
                    
1<?php
                    
2/**
                    
18 * <code>
                    
19 * <?php
                    
20 *     // Create a new tree
                    
195        $list = new ezcTreeNodeList;
                    
196        foreach ( array_reverse( $nodes ) as $node )
                    
197        {
                    
                
Arr.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 419 lines
                    
1<?php
                    
2
                    
170    {
                    
171        return static::first(array_reverse($array), $callback, $default);
                    
172    }
                    
                
Import.php https://github.com/allanfreitas/CodeIgniter-Base-Project-Files.git | PHP | 402 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Import.php 2552 2007-09-19 19:33:00Z Jonathan.Wage $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @author      Jonathan H. Wage <jwage@mac.com>
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @link        www.phpdoctrine.org
                    
114        if ( ! $append) {
                    
115            $this->purge(array_reverse(array_keys($array)));
                    
116        }
                    
368                $children = (array) $nestedSet['children'];
                    
369                $children = array_reverse($children, true);
                    
370                unset($nestedSet['children']);
                    
                
class-button.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 377 lines
                    
1<?php
                    
2class FusionSC_Button {
                    
234				// For combination of gradient_hover_colors and gradient_hover_colors
                    
235				//$grad_hover_colors = array_reverse( $grad_hover_colors );
                    
236
                    
                
simpletest.php https://github.com/devsatish/ThinkUp.git | PHP | 391 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: simpletest.php 1994 2010-04-03 16:26:26Z lastcraft $
                    
7 */
                    
11 */
                    
12require_once(dirname(__FILE__) . '/reflection_php5.php');
                    
13require_once(dirname(__FILE__) . '/default_reporter.php');
                    
13require_once(dirname(__FILE__) . '/default_reporter.php');
                    
14require_once(dirname(__FILE__) . '/compatibility.php');
                    
15/**#@-*/
                    
242 *    test run. Makes things like error queues
                    
243 *    available to PHP event handlers, and also
                    
244 *    gets around some nasty reference issues in
                    
350     *    Test to see if error is generated by SimpleTest itself.
                    
351     *    @param array $frame     PHP stack frame.
                    
352     *    @return boolean         True if a SimpleTest file.
                    
                
simpletest.php https://github.com/orchestra-io/sample-openx.git | PHP | 433 lines
                    
1<?php
                    
2    /**
                    
5     *	@subpackage	UnitTester
                    
6     *	@version	$Id: simpletest.php 7321 2007-06-05 09:08:01Z andrew.hill@openads.org $
                    
7     */
                    
12    if (version_compare(phpversion(), '5') >= 0) {
                    
13        require_once(dirname(__FILE__) . '/reflection_php5.php');
                    
14    } else {
                    
14    } else {
                    
15        require_once(dirname(__FILE__) . '/reflection_php4.php');
                    
16    }
                    
39         *    because the class is an abstract case that should
                    
40         *    not be run. Once PHP4 is dropped this will disappear
                    
41         *    as a public method and "abstract" will rule.
                    
205     *    test run. Makes things like error queues
                    
206     *    available to PHP event handlers, and also
                    
207     *    gets around some nasty reference issues in
                    
                
Handler.php https://github.com/jfolkins/phergie.git | PHP | 501 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
151    {
                    
152        foreach (array_reverse($this->paths) as $path) {
                    
153            $file = $path['path'] . $plugin . '.php';
                    
                
Abstract.php https://github.com/grandison/budo16.git | PHP | 412 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Abstract.php 16220 2009-06-21 19:49:21Z thomas $
                    
20 */
                    
24 */
                    
25// require_once 'Zend/Locale.php';
                    
26
                    
29 */
                    
30// require_once 'Zend/Locale/Math.php';
                    
31
                    
34 */
                    
35// require_once 'Zend/Locale/Format.php';
                    
36
                    
94        if (isset($this->_units[$type]) === false) {
                    
95            // require_once 'Zend/Measure/Exception.php';
                    
96            throw new Zend_Measure_Exception("Type ($type) is unknown");
                    
                
Data.php https://bitbucket.org/jokusafet/magento2.git | PHP | 465 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
101                $pathInStore = $category->getPathInStore();
                    
102                $pathIds = array_reverse(explode(',', $pathInStore));
                    
103
                    
                
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>
                    
                
App.php https://github.com/bobthecow/genghis.git | PHP | 210 lines
                    
1<?php
                    
2
                    
82
                    
83        foreach (array('SCRIPT_NAME', 'PHP_SELF', 'ORIG_SCRIPT_NAME') as $key) {
                    
84            if (isset($_SERVER[$key]) && basename($_SERVER[$key]) == $filename) {
                    
90        if (!isset($baseUrl)) {
                    
91            $path    = isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : '';
                    
92            $file    = isset($_SERVER['SCRIPT_FILENAME']) ? $_SERVER['SCRIPT_FILENAME'] : '';
                    
92            $file    = isset($_SERVER['SCRIPT_FILENAME']) ? $_SERVER['SCRIPT_FILENAME'] : '';
                    
93            $chunks  = array_reverse(explode('/', trim($file, '/')));
                    
94            $index   = 0;
                    
147        } elseif (isset($_SERVER['REQUEST_URI'])) {
                    
148            return parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
                    
149        } else {
                    
                
lib.php https://bitbucket.org/ngmares/moodle.git | PHP | 170 lines
                    
1<?php
                    
2
                    
25 */
                    
26require_once($CFG->dirroot . '/repository/lib.php');
                    
27
                    
89                }
                    
90                $ret['path'] = array_reverse($pathnodes);
                    
91
                    
                
Process.php https://bitbucket.org/kdms/sh-magento.git | PHP | 451 lines
                    
1<?php
                    
2/**
                    
127            if (strpos(str_replace($this->_includeDir, '', $target), '-')
                    
128                || !in_array(substr($source, strlen($source)-4, 4), array('.php'))) {
                    
129                return $this;
                    
199        } else {
                    
200            if (!in_array(substr($source, strlen($source)-4, 4), array('.php'))) {
                    
201                return $this;
                    
231        $paths  = $this->_getIncludePaths();
                    
232        $paths  = array_reverse($paths);
                    
233        $destDir= $this->_includeDir;
                    
334            $classesSorce = $this->_getClassesSourceCode($classes, $code);
                    
335            file_put_contents($this->_includeDir.DS.Varien_Autoload::SCOPE_FILE_PREFIX.$code.'.php', $classesSorce);
                    
336        }
                    
343        foreach ($classes as $className) {
                    
344            $implements = array_reverse(class_implements($className));
                    
345            foreach ($implements as $class) {
                    
                
RTLCSS.php https://github.com/mackensen/moodle.git | PHP | 430 lines
                    
1<?php
                    
2/**
                    
276                            case 2:
                    
277                                $group->setListComponents(array_reverse($values));
                    
278                                break;
                    
                
program.php https://bitbucket.org/crevillo/enetcall.git | PHP | 298 lines
                    
1<?php
                    
2/**
                    
182
                    
183            $parents = array_reverse( $parents );
                    
184            $treeText = "The current nesting structure:\n" . join( "\n", $parents );
                    
                
Migrator.php https://gitlab.com/MineYourMind/BoNeMEAL | PHP | 411 lines
                    
1<?php namespace Illuminate\Database\Migrations;
                    
2
                    
187
                    
188		$migrations = array_reverse($this->repository->getRan());
                    
189
                    
243	{
                    
244		$files = $this->files->glob($path.'/*_*.php');
                    
245
                    
252		{
                    
253			return str_replace('.php', '', basename($file));
                    
254
                    
273	{
                    
274		foreach ($files as $file) $this->files->requireOnce($path.'/'.$file.'.php');
                    
275	}
                    
                
html.php https://github.com/francisreboucas/revolution.git | PHP | 230 lines
                    
1<?php
                    
2/**
                    
174            }
                    
175            $aliasPath= !empty ($parentResources) ? implode('/', array_reverse($parentResources)) : '';
                    
176        }
                    
                
File.php https://gitlab.com/hoanghung.dev/phunuvadoisong.com | PHP | 456 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * LocalFile.php
                    
4 *
                    
206		if ($this->isDirectory()) {
                    
207			$files = array_reverse($this->getFiles($this->internalPath));
                    
208
                    
439			if (strpos($path, '?') !== false) {
                    
440				throw new MOXMAN_Exception("PHP doesn't support the specified characters on Windows.", MOXMAN_Exception::INVALID_FILE_NAME);
                    
441			}
                    
                
Collection.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 705 lines
                    
1<?php namespace Illuminate\Support;
                    
2
                    
362	{
                    
363		return new static(array_reverse($this->items));
                    
364	}
                    
                
FormRenderer.php https://gitlab.com/cuza/Clinic_Recods | PHP | 309 lines
                    
1<?php
                    
2
                    
246                'Unable to render the form as none of the following blocks exist: "%s".',
                    
247                implode('", "', array_reverse($blockNameHierarchy))
                    
248            ));
                    
                
Migrator.php https://gitlab.com/ealexis.t/trends | PHP | 417 lines
                    
1<?php
                    
2
                    
197
                    
198        $migrations = array_reverse($this->repository->getRan());
                    
199
                    
250    {
                    
251        $files = $this->files->glob($path.'/*_*.php');
                    
252
                    
260        $files = array_map(function ($file) {
                    
261            return str_replace('.php', '', basename($file));
                    
262
                    
282        foreach ($files as $file) {
                    
283            $this->files->requireOnce($path.'/'.$file.'.php');
                    
284        }
                    
                
Abstract.php https://bitbucket.org/baruffaldi/framework-php-geezmo.git | PHP | 376 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Abstract.php 12060 2008-10-21 17:23:55Z thomas $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Locale.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Locale/Math.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Locale/Format.php';
                    
36
                    
89        if (empty($locale)) {
                    
90            require_once 'Zend/Registry.php';
                    
91            if (Zend_Registry::isRegistered('Zend_Locale') === true) {
                    
                
routes.php https://bitbucket.org/sirestudios/fortis-wellness.git | PHP | 369 lines
                    
1<?php
                    
2
                    
341    // set up the view
                    
342    Statamic_View::set_templates(array_reverse($template_list));
                    
343
                    
                
Migrator.php https://gitlab.com/Sigpot/AirSpot | PHP | 416 lines
                    
1<?php
                    
2
                    
197
                    
198        $migrations = array_reverse($this->repository->getRan());
                    
199
                    
250    {
                    
251        $files = $this->files->glob($path.'/*_*.php');
                    
252
                    
260        $files = array_map(function ($file) {
                    
261            return str_replace('.php', '', basename($file));
                    
262        }, $files);
                    
281        foreach ($files as $file) {
                    
282            $this->files->requireOnce($path.'/'.$file.'.php');
                    
283        }
                    
                
navigation.php https://gitlab.com/sunielk/foundation-sandbox | PHP | 229 lines
                    
1<?php
                    
2/**
                    
126					// Get parents in the right order
                    
127					$anc = array_reverse( $anc );
                    
128
                    
                
PluginLoader.php https://github.com/Exercise/zf2.git | PHP | 492 lines
                    
1<?php
                    
2/**
                    
384
                    
385        $registry  = array_reverse($registry, true);
                    
386        $found     = false;
                    
386        $found     = false;
                    
387        $classFile = str_replace('\\', DIRECTORY_SEPARATOR, $name) . '.php';
                    
388        $incFile   = self::getIncludeFileCache();
                    
396
                    
397            $paths     = array_reverse($paths, true);
                    
398
                    
482        if (!file_exists(self::$_includeFileCache)) {
                    
483            $file = '<?php';
                    
484        } else {
                    
                
Compiler.php https://bitbucket.org/iiic/iszp.git | PHP | 369 lines
                    
1<?php
                    
2
                    
172		$list = array_keys($defs);
                    
173		foreach (array_reverse($defs, TRUE) as $name => $def) {
                    
174			if ($def->class === 'Nette\DI\NestedAccessor' && ($found = preg_grep('#^'.$name.'\.#i', $list))) {
                    
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) {
                    
                
sale_note_ticket.blade.php https://gitlab.com/laher01/factu40 | PHP | 216 lines
                    
1@php
                    
2    $establishment = $document->establishment;
                    
8
                    
9@endphp
                    
10<html>
                    
185
                    
186        @foreach(array_reverse((array) $document->legends) as $row)
                    
187            <tr>
                    
203    <tr><td><strong>PAGOS:</strong> </td></tr>
                    
204    @php
                    
205        $payment = 0;
                    
205        $payment = 0;
                    
206    @endphp
                    
207    @foreach($payments as $row)
                    
208        <tr><td>- {{ $row->date_of_payment->format('d/m/Y') }} - {{ $row->payment_method_type->description }} - {{ $row->reference ? $row->reference.' - ':'' }} {{ $document->currency_type->symbol }} {{ $row->payment }}</td></tr>
                    
209        @php
                    
210            $payment += (float) $row->payment;
                    
                
Abstract.php https://github.com/lanmediaservice/lms-tplib.git | PHP | 412 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Abstract.php 16220 2009-06-21 19:49:21Z thomas $
                    
20 */
                    
24 */
                    
25//*** require_once 'Zend/Locale.php';
                    
26
                    
29 */
                    
30//*** require_once 'Zend/Locale/Math.php';
                    
31
                    
34 */
                    
35//*** require_once 'Zend/Locale/Format.php';
                    
36
                    
94        if (isset($this->_units[$type]) === false) {
                    
95            //*** require_once 'Zend/Measure/Exception.php';
                    
96            throw new Zend_Measure_Exception("Type ($type) is unknown");
                    
                
CakeFixtureManager.php https://bitbucket.org/00firestar00/ejfirestar.com.git | PHP | 285 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://cakephp.org CakePHP(tm) Project
                    
14 * @package       Cake.TestSuite.Fixture
                    
14 * @package       Cake.TestSuite.Fixture
                    
15 * @since         CakePHP(tm) v 2.0
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
138				$className = Inflector::camelize($fixture);
                    
139				if (is_readable($path . DS . $className . 'Fixture.php')) {
                    
140					$fixtureFile = $path . DS . $className . 'Fixture.php';
                    
150			if (!$loaded) {
                    
151				$firstPath = str_replace(array(APP, CAKE_CORE_INCLUDE_PATH, ROOT), '', $fixturePaths[0] . DS . $className . 'Fixture.php');
                    
152				throw new UnexpectedValueException(__d('cake_dev', 'Referenced fixture class %s (%s) not found', $className, $firstPath));
                    
                
Module.php https://gitlab.com/caseymilos/ubriumMVC | PHP | 408 lines
                    
1<?php
                    
2
                    
50    /**
                    
51     * Compiles the node to PHP.
                    
52     *
                    
66        if (!$this->getAttribute('index')) {
                    
67            $compiler->write('<?php');
                    
68        }
                    
137            ->write("\n\n")
                    
138            // if the filename contains */, add a blank to avoid a PHP parse error
                    
139            ->write('/* '.str_replace('*/', '* /', $this->getAttribute('filename'))." */\n")
                    
385            ->indent()
                    
386            ->write(sprintf("return %s;\n", str_replace("\n", '', var_export(array_reverse($compiler->getDebugInfo(), true), true))))
                    
387            ->outdent()
                    
                
Message.php https://gitlab.com/ramos.lauty/softlord | PHP | 432 lines
                    
1<?php
                    
2
                    
232			);
                    
233			foreach (array_reverse($matches) as $m) {
                    
234				$file = rtrim($basePath, '/\\') . '/' . (isset($m[4]) ? $m[4][0] : urldecode($m[3][0]));
                    
427		return '<' . Nette\Utils\Random::generate() . '@'
                    
428			. preg_replace('#[^\w.-]+#', '', isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : php_uname('n'))
                    
429			. '>';
                    
                
Data.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 478 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
101                $pathInStore = $category->getPathInStore();
                    
102                $pathIds = array_reverse(explode(',', $pathInStore));
                    
103
                    
                
Module.php https://bitbucket.org/mrblackus/micro-muffin.git | PHP | 383 lines
                    
1<?php
                    
2
                    
31    /**
                    
32     * Compiles the node to PHP.
                    
33     *
                    
49        {
                    
50            $compiler->write('<?php');
                    
51        }
                    
132            ->write("\n\n")
                    
133            // if the filename contains */, add a blank to avoid a PHP parse error
                    
134            ->write("/* " . str_replace('*/', '* /', $this->getAttribute('filename')) . " */\n")
                    
354            ->indent()
                    
355            ->write(sprintf("return %s;\n", str_replace("\n", '', var_export(array_reverse($compiler->getDebugInfo(), true), true))))
                    
356            ->outdent()
                    
                
overview.php https://bitbucket.org/xwd/moses-csp.git | PHP | 384 lines
                    
1<?php
                    
2
                    
9  print "<TR><TD>ID</TD><TD>User</TD><TD>Task</TD><TD>Directory</TD></TR>\n";
                    
10  $rev = array_reverse($setup);
                    
11  while (list($i,$line) = each($rev)) {
                    
164    httpObject.onreadystatechange = setComment;
                    
165    httpObject.open("GET", "comment.php?run="+encodeURIComponent(runID)+"&text="
                    
166                    +encodeURIComponent(document.getElementById('comment-'+runID).value), true);
                    
248</script>
                    
249<?php
                    
250}
                    
                
FormWizardBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 471 lines
                    
1<?php
                    
2
                    
216    // Reverse the steps for easy access to the next step.
                    
217    $before_steps = array_reverse($before);
                    
218    $step = reset($before_steps);
                    
                
subscription.php https://github.com/godber/PHXdata-Website.git | PHP | 393 lines
                    
1<?php
                    
2/**
                    
192    }
                    
193    return array_reverse($matches);
                    
194}
                    
                
reset_form.php https://github.com/pauln/moodle.git | PHP | 163 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
26
                    
27require_once $CFG->libdir.'/formslib.php';
                    
28
                    
56        $roles[0] = get_string('noroles', 'role');
                    
57        $roles = array_reverse($roles, true);
                    
58
                    
91                $modname = $mod->name;
                    
92                $modfile = $CFG->dirroot."/mod/$modname/lib.php";
                    
93                $mod_reset_course_form_definition = $modname.'_reset_course_form_definition';
                    
105                } else {
                    
106                    debugging('Missing lib.php in '.$modname.' module');
                    
107                }
                    
145                $modname = $mod->name;
                    
146                $modfile = $CFG->dirroot."/mod/$modname/lib.php";
                    
147                $mod_reset_course_form_defaults = $modname.'_reset_course_form_defaults';
                    
                
str.php https://bitbucket.org/codeyash/bootstrap.git | PHP | 416 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2013 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
17 *
                    
18 * PHP needs to be compiled with --enable-mbstring
                    
19 * or a fallback without encoding support is used
                    
72		$new_string .= (static::length($string) > $limit ? $continuation : '');
                    
73		$new_string .= (count($tags = array_reverse($tags)) ? '</'.implode('></',$tags).'>' : '');
                    
74		return $new_string;
                    
                
interface.php https://github.com/Lithixium/HawkEye.git | PHP | 244 lines
                    
1<?php
                    
2	
                    
11	//Include config, lang pack and MySQL connector
                    
12	include("config.php");
                    
13	include("langs/" . $config["langFile"]);	
                    
22	//Check if required functions are here
                    
23	if (!function_exists("json_decode")) return error("JSON PHP library not installed! Update to PHP 5.3 or later!");
                    
24	
                    
201		
                    
202		$action = str_replace(array_reverse(array_keys($lang["actions"])), array_reverse($lang["actions"]), $action);
                    
203	
                    
                
str.php https://bitbucket.org/sriedel/iccrm-wip.git | PHP | 416 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2012 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
17 *
                    
18 * PHP needs to be compiled with --enable-mbstring
                    
19 * or a fallback without encoding support is used
                    
72		$new_string .= (static::length($string) > $limit ? $continuation : '');
                    
73		$new_string .= (count($tags = array_reverse($tags)) ? '</'.implode('></',$tags).'>' : '');
                    
74		return $new_string;
                    
                
gettraffic.php https://bitbucket.org/Nemcio/kloxo-mr.git | PHP | 245 lines
                    
1<?php 
                    
2include_once "htmllib/lib/displayinclude.php";
                    
116		}
                    
117		$timearray = array_reverse($timearray);
                    
118
                    
                
PluginLoader.php https://bitbucket.org/areeves42/openfisma.git | PHP | 484 lines
                    
1<?php
                    
2/**
                    
23/** Zend_Loader_PluginLoader_Interface */
                    
24// require_once 'Zend/Loader/PluginLoader/Interface.php';
                    
25
                    
26/** Zend_Loader */
                    
27// require_once 'Zend/Loader.php';
                    
28
                    
147        if (!is_string($prefix) || !is_string($path)) {
                    
148            // require_once 'Zend/Loader/PluginLoader/Exception.php';
                    
149            throw new Zend_Loader_PluginLoader_Exception('Zend_Loader_PluginLoader::addPrefixPath() method only takes strings for prefix and path.');
                    
252        if (!isset($registry[$prefix])) {
                    
253            // require_once 'Zend/Loader/PluginLoader/Exception.php';
                    
254            throw new Zend_Loader_PluginLoader_Exception('Prefix ' . $prefix . ' was not found in the PluginLoader.');
                    
259            if (false === $pos) {
                    
260                // require_once 'Zend/Loader/PluginLoader/Exception.php';
                    
261                throw new Zend_Loader_PluginLoader_Exception('Prefix ' . $prefix . ' / Path ' . $path . ' was not found in the PluginLoader.');
                    
                
router.php https://github.com/kuzin/website-2008.git | PHP | 446 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version		$Id: router.php 8180 2007-07-23 05:52:29Z eddieajau $
                    
4* @package		Joomla.Framework
                    
6* @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
                    
7* @license		GNU/GPL, see LICENSE.php
                    
8* Joomla! is free software. This version may have been modified pursuant
                    
11* other free or open source software licenses.
                    
12* See COPYRIGHT.php for copyright notices and details.
                    
13*/
                    
55
                    
56			if($app->getCfg('sef_suffix') && !(substr($path, -9) == 'index.php' || substr($path, -1) == '/'))
                    
57			{
                    
69		//Remove prefix
                    
70		$path = str_replace('index.php', '', $path);
                    
71
                    
                
index.php https://gitlab.com/alidzapp/gamerz-file-explorer | PHP | 194 lines
                    
4require( 'settings.php' );
                    
5require( 'functions.php' );
                    
6
                    
113        $gmz_files = array_reverse( $gmz_files );
                    
114        $gmz_directories = array_reverse( $gmz_directories );
                    
115    }
                    
117?>
                    
118<?php template_header( ! empty( $current_directory_name ) ? ' - Viewing Directory - ' . $current_directory_name : '' ); ?>
                    
119
                    
124            <tr>
                    
125                <th style="width: 50%;" onclick="parent.location.href='<?php echo create_sort_url( 'name' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Name">Name&nbsp;<?php echo create_sort_image( 'name' ); ?></th>
                    
126                <th style="width: 10%;" onclick="parent.location.href='<?php echo create_sort_url( 'size' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Size">Size&nbsp;<?php echo create_sort_image( 'size' ); ?></th>
                    
127                <th style="width: 20%;" onclick="parent.location.href='<?php echo create_sort_url( 'type' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Type">Type&nbsp;<?php echo create_sort_image( 'type' ); ?></th>
                    
128                <th style="width: 20%;" onclick="parent.location.href='<?php echo create_sort_url( 'date' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Date">Date&nbsp;<?php echo create_sort_image( 'date' ); ?></th>
                    
129            </tr>
                    
                
Price.php https://gitlab.com/yousafsyed/easternglamor | PHP | 384 lines
                    
1<?php
                    
2/**
                    
323
                    
324        return array_reverse($this->getConnection()->fetchCol($pricesSelect));
                    
325    }
                    
                
ThemeSuggestions.php https://gitlab.com/guillaumev/alkarama | PHP | 359 lines
                    
1<?php
                    
2/**
                    
228    // Return the suggestions, reversed.
                    
229    return array_reverse($suggestions);
                    
230  }
                    
260    // Reverse the methods.
                    
261    $methods = array_reverse($methods);
                    
262
                    
                
url_helper.php https://gitlab.com/zanderwong/admin | PHP | 523 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 *
                    
297
                    
298        $x = array_reverse($x);
                    
299        ob_start();
                    
304            var l = new Array();
                    
305            <?php
                    
306                $i = 0;
                    
306                $i = 0;
                    
307                foreach ($x as $val){ ?>l[<?php echo $i++; ?>] = '<?php echo $val; ?>';<?php } ?>
                    
308
                    
313            //]]>
                    
314        </script><?php
                    
315
                    
                
sfFilesystem.class.php https://github.com/mikesname/ehri-ica-atom.git | PHP | 480 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfFilesystem.class.php 30912 2010-09-15 11:10:46Z fabien $
                    
18 */
                    
129
                    
130    $files = array_reverse($files);
                    
131    foreach ($files as $file)
                    
                
Exception.php https://github.com/tstarling/hiphop-php.git | PHP | 226 lines
                    
4/**
                    
5 * ( excerpt from http://php.net/manual/en/class.exception.php )
                    
6 *
                    
36  /**
                    
37   * ( excerpt from http://php.net/manual/en/exception.construct.php )
                    
38   *
                    
93  /**
                    
94   * ( excerpt from http://php.net/manual/en/exception.getcode.php )
                    
95   *
                    
145  /**
                    
146   * ( excerpt from http://php.net/manual/en/exception.gettraceasstring.php )
                    
147   *
                    
171  /**
                    
172   * ( excerpt from http://php.net/manual/en/exception.tostring.php )
                    
173   *
                    
                
model.php https://gitlab.com/edgarze188/sunrise | PHP | 280 lines
                    
1<?php
                    
2/**
                    
249          if ($sort_order == 'desc') {
                    
250              $file_names = array_reverse($file_names);
                    
251          }
                    
                
Pipeline.php https://gitlab.com/ealexis.t/trends | PHP | 170 lines
                    
1<?php
                    
2
                    
98
                    
99        $pipes = array_reverse($this->pipes);
                    
100
                    
                
Arr.php https://gitlab.com/ealexis.t/trends | PHP | 528 lines
                    
1<?php
                    
2
                    
184
                    
185        return static::first(array_reverse($array), $callback, $default);
                    
186    }
                    
                
SqliteSchemaManager.php https://gitlab.com/techniconline/kmc | PHP | 396 lines
                    
1<?php
                    
2/*
                    
129
                    
130                $names = array_reverse($match[1]);
                    
131                $deferrable = array_reverse($match[2]);
                    
131                $deferrable = array_reverse($match[2]);
                    
132                $deferred = array_reverse($match[3]);
                    
133            } else {
                    
                
arr.php https://github.com/letuboy/SwiftSharing-Core.git | PHP | 574 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
343	{
                    
344		$array = array_reverse($array, TRUE);
                    
345		$array[$key] = $val;
                    
345		$array[$key] = $val;
                    
346		$array = array_reverse($array, TRUE);
                    
347
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies the
                    
353	 * same callback to all elements in an array, including sub-arrays.
                    
383	 * Merges one or more arrays recursively and preserves all keys.
                    
384	 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)!
                    
385	 *
                    
                
Compiler.php https://bitbucket.org/pavoleichler/2013_erichseemann_vypestujdobro.git | PHP | 367 lines
                    
1<?php
                    
2
                    
172		$list = array_keys($defs);
                    
173		foreach (array_reverse($defs, TRUE) as $name => $def) {
                    
174			if ($def->class === 'Nette\DI\NestedAccessor' && ($found = preg_grep('#^'.$name.'\.#i', $list))) {
                    
177				$class->documents = preg_replace("#\S+(?= \\$$name$)#", $def->class, $class->documents);
                    
178				$classes[] = $accessor = new Nette\Utils\PhpGenerator\ClassType($def->class);
                    
179				foreach ($found as $item) {
                    
                
view.php https://github.com/stevoland/ezpublish.git | PHP | 296 lines
                    
1<?php
                    
2//
                    
97            // Without reference there will be a inconsistency with GLOBAL instance and stored ini file.
                    
98            $iniTemp = eZINI::create( $settingFile . '.append.php', $path, null, null, null, true );
                    
99            $iniTemp->removeSetting( $block, $setting );
                    
120        $newINIOverrideDirList = array();
                    
121        foreach ( array_reverse( $GLOBALS['eZINIOverrideDirList'] ) as $dir )
                    
122        {
                    
132        }
                    
133        $iniOverrideDirListWithoutSiteaccess = array_reverse( $newINIOverrideDirList );
                    
134
                    
153        $activeExtensionOverrideDirList = array();
                    
154        foreach ( array_reverse( $newActiveAccessExtensions ) as $extensionName )
                    
155        {
                    
                
Abstract.php https://github.com/bhaumik25/zend-framework.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
21
                    
22require_once 'Zend/Locale.php';
                    
23require_once 'Zend/Locale/Math.php';
                    
23require_once 'Zend/Locale/Math.php';
                    
24require_once 'Zend/Locale/Format.php';
                    
25
                    
86        if (!$this->_locale = Zend_Locale::isLocale($locale, true)) {
                    
87            require_once 'Zend/Measure/Exception.php';
                    
88            throw new Zend_Measure_Exception("Language ($locale) is unknown");
                    
97        if (isset($this->_units[$type]) === false) {
                    
98            require_once 'Zend/Measure/Exception.php';
                    
99            throw new Zend_Measure_Exception("Type ($type) is unknown");
                    
143        if (!Zend_Locale::isLocale($locale)) {
                    
144            require_once 'Zend/Measure/Exception.php';
                    
145            throw new Zend_Measure_Exception("Language ($locale) is unknown");
                    
                
Validator.php https://github.com/joshuaswarren/weatherhub.git | PHP | 206 lines
                    
1<?php
                    
2
                    
39        $this->aliases = array();
                    
40        // PHP is a bit lax with integer <=> string conversions in
                    
41        // arrays, so we don't use the identical !== comparison
                    
200    protected function getFormattedContext() {
                    
201        return implode(' in ', array_reverse($this->context));
                    
202    }
                    
                
class-breadcrumbs.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 327 lines
                    
1<?php 
                    
2
                    
147				$trail = $this->get_menu_trail();
                    
148				$trail = array_reverse ( $trail );
                    
149				$trailposts = array();
                    
176							$parents = $this->get_term_parents($terms[0], $main_tax);
                    
177							$parents = array_reverse($parents);
                    
178							foreach($parents as $parent) {
                    
203					// Reverse the order so it's oldest to newest
                    
204					$ancestors = array_reverse( apply_filters( 'wp_seo_get_bc_ancestors', $ancestors ) );
                    
205
                    
251					$parents = $this->get_term_parents($term, $term->taxonomy);
                    
252					$parents = array_reverse( $parents );
                    
253					
                    
                
functions.php https://github.com/codepassive/dev-nimbus.git | PHP | 408 lines
                    
1<?php
                    
2/** 
                    
17/**
                    
18 * Copyright (c) PHPUTF8
                    
19 * http://sourceforge.net/projects/phputf8/
                    
104    preg_match_all('/./us', $str, $ar);
                    
105    return join('', array_reverse($ar[0]));
                    
106}
                    
228    // form feeds, horizontal tabs, vertical tabs, linefeeds and carriage returns
                    
229    // This corresponds to the definition of a "word" defined at http://www.php.net/ucwords
                    
230    $pattern = '/(^|([\x0c\x09\x0b\x0a\x0d\x20]+))([^\x0c\x09\x0b\x0a\x0d\x20]{1})[^\x0c\x09\x0b\x0a\x0d\x20]*/u';
                    
                
simpletest.php https://github.com/quarkness/piwik.git | PHP | 478 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: simpletest.php 1723 2008-04-08 00:34:10Z lastcraft $
                    
7 */
                    
12if (version_compare(phpversion(), '5') >= 0) {
                    
13    require_once(dirname(__FILE__) . '/reflection_php5.php');
                    
14} else {
                    
14} else {
                    
15    require_once(dirname(__FILE__) . '/reflection_php4.php');
                    
16}
                    
16}
                    
17require_once(dirname(__FILE__) . '/default_reporter.php');
                    
18require_once(dirname(__FILE__) . '/compatibility.php');
                    
42     *    because the class is an abstract case that should
                    
43     *    not be run. Once PHP4 is dropped this will disappear
                    
44     *    as a public method and "abstract" will rule.
                    
                
ClassMetadataFactory.php https://github.com/jameshelly/Sample-Modular-Zend-Framework-Application.git | PHP | 446 lines
                    
1<?php
                    
2/*
                    
36 *
                    
37 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
38 * @link    www.doctrine-project.org
                    
259        $parentClasses = array();
                    
260        foreach (array_reverse(class_parents($name)) as $parentClass) {
                    
261            if (!$this->driver->isTransient($parentClass)) {
                    
                
Item.php https://gitlab.com/ricardosanchez/prueba | PHP | 398 lines
                    
1<?php
                    
2/**
                    
255    {
                    
256        array_reverse($this->children, true);
                    
257        array_reverse($this->groups, true);
                    
                
settings.php https://github.com/mgsisk/webcomic.git | PHP | 459 lines
                    
1<?php
                    
2/**
                    
64		$path       = dirname( __DIR__ );
                    
65		$components = array_reverse( array_map( 'basename', array_unique( array_merge( [ $path . '/collection', $path . '/compat' ], glob( $path . '/*', GLOB_ONLYDIR ) ) ) ) );
                    
66
                    
106		function() {
                    
107			require __DIR__ . '/settings-inc-page.php';
                    
108		}
                    
131			$args = [
                    
132				'file'      => __DIR__ . '/settings-inc-section.php',
                    
133				'option'    => webcomic( 'option.components' ),
                    
162		'webcomic_general', [
                    
163			'file'      => __DIR__ . '/settings-inc-field-uninstall.php',
                    
164			'option'    => webcomic( 'option.uninstall' ),
                    
187		'webcomic_general', [
                    
188			'file'      => __DIR__ . '/settings-inc-field-debug.php',
                    
189			'option'    => webcomic( 'option.debug' ),
                    
                
Data.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 279 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Data.php 48519 2012-02-03 23:18:52Z btowles $
                    
4 *
                    
30 * @author      Jonathan H. Wage <jwage@mac.com>
                    
31 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
32 * @link        www.doctrine-project.org
                    
272            $models = Doctrine_Manager::getInstance()->getConnection($connection)->unitOfWork->buildFlushTree($models);
                    
273            $models = array_reverse($models);
                    
274            foreach ($models as $model) {
                    
                
Arvore.php https://gitlab.com/jalon/doadoronline | PHP | 432 lines
                    
1<?php
                    
2
                    
336		
                    
337		$array = array_reverse($array);
                    
338		$itens	= array();
                    
                
lib.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 222 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24 */
                    
25require_once($CFG->dirroot . '/repository/lib.php');
                    
26
                    
95            if (!empty($pathnodes) && is_array($pathnodes)) {
                    
96                $pathnodes = array_reverse($pathnodes);
                    
97                $ret['path'] = $pathnodes;
                    
                
Filesystem.php https://github.com/Exercise/symfony.git | PHP | 284 lines
                    
1<?php
                    
2
                    
88        $files = iterator_to_array($this->toIterator($files));
                    
89        $files = array_reverse($files);
                    
90        foreach ($files as $file) {
                    
262            )
                    
263            || null !== parse_url($file, PHP_URL_SCHEME)
                    
264        ) {
                    
                
string.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
112				// Closing tags need to be in the reverse order of opening tags.
                    
113				$openedTags = array_reverse($openedTags);
                    
114
                    
                
edit.php https://github.com/anqh/anqh.git | PHP | 484 lines
                    
1<?php defined('SYSPATH') or die('No direct access allowed.');
                    
2/**
                    
7 * @copyright  (c) 2012-2014 Antti Qvickström
                    
8 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
                    
9 */
                    
58
                    
59	<?php if ($this->event_errors || $this->venue_errors): ?>
                    
60	<div class="alert alert-danger">
                    
62		<ul class="">
                    
63			<?php foreach ((array)$this->event_errors as $error): ?>
                    
64			<li><?= $error ?></li>
                    
64			<li><?= $error ?></li>
                    
65			<?php endforeach; ?>
                    
66			<?php foreach ((array)$this->venue_errors as $error): ?>
                    
67			<li><?= __('Venue') ?>: <?= $error ?></li>
                    
68			<?php endforeach; ?>
                    
69		</ul>
                    
                
CleanerHelper.php https://github.com/bmcclure/CakePHP-Utils-Plugin.git | PHP | 452 lines
                    
1<?php
                    
2/**
                    
8 * @copyright Copyright 2007-2010, Cake Development Corporation (http://cakedc.com)
                    
9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10 */
                    
264				$attributeSubSetTmp = $attributeSubSet;
                    
265				$attributeSubSetTmp = array_reverse($attributeSubSetTmp);
                    
266				array_pop($attributeSubSetTmp);
                    
266				array_pop($attributeSubSetTmp);
                    
267				$attributeSubSetTmp = array_reverse($attributeSubSetTmp);
                    
268				$attributeSubSet[1] = join('=', $attributeSubSetTmp);
                    
                
array.idl.php https://github.com/zsj888/hiphop-php.git | PHP | 376 lines
                    
1<?php
                    
2
                    
2
                    
3include_once 'base.php';
                    
4
                    
129
                    
130f('array_reverse', Variant,
                    
131  array('array' => Variant,
                    
                
Arr.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 519 lines
                    
1<?php
                    
2
                    
168
                    
169        return static::first(array_reverse($array, true), $callback, $default);
                    
170    }
                    
                
arr.php https://github.com/o1iver/Code-Backup.git | PHP | 574 lines
                    
1<?php defined('SYSPATH') or die('No direct access allowed.');
                    
2/**
                    
343	{
                    
344		$array = array_reverse($array, TRUE);
                    
345		$array[$key] = $val;
                    
345		$array[$key] = $val;
                    
346		$array = array_reverse($array, TRUE);
                    
347
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies the
                    
353	 * same callback to all elements in an array, including sub-arrays.
                    
383	 * Merges one or more arrays recursively and preserves all keys.
                    
384	 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)!
                    
385	 *
                    
                
Imagick.php https://github.com/bicho44/imglistados.git | PHP | 335 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Support for image manipulation using [Imagick](http://php.net/Imagick).
                    
4 *
                    
153			// Change the direction of the fade
                    
154			$direction = array_reverse($direction);
                    
155		}
                    
                
List.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 518 lines
                    
1<?php
                    
2/**
                    
148
                    
149            foreach (array_reverse($remove) as $key) {
                    
150                unset($this[$key]);
                    
185
                    
186        foreach (array_reverse($remove) as $key) {
                    
187            unset($this[$key]);
                    
282     *
                    
283     * Useful since it allows chaining; older PHP versions did not allow array
                    
284     * access dereferencing from the results of a function call.
                    
                
Stream.php https://bitbucket.org/brunoMaurice/youfood.git | PHP | 410 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Stream.php 16541 2009-07-07 06:59:03Z bkarwin $
                    
20 */
                    
23/** Zend_Pdf_Element_Object */
                    
24require_once 'Zend/Pdf/Element/Object.php';
                    
25
                    
26/** Zend_Pdf_Element_Stream */
                    
27require_once 'Zend/Pdf/Element/Stream.php';
                    
28
                    
29/** Zend_Pdf_Filter_Ascii85 */
                    
30require_once 'Zend/Pdf/Filter/Ascii85.php';
                    
31
                    
32/** Zend_Pdf_Filter_AsciiHex */
                    
33require_once 'Zend/Pdf/Filter/AsciiHex.php';
                    
34
                    
                
Data.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 279 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Data.php 2552 2007-09-19 19:33:00Z Jonathan.Wage $
                    
4 *
                    
30 * @author      Jonathan H. Wage <jwage@mac.com>
                    
31 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
32 * @link        www.doctrine-project.org
                    
272            $models = Doctrine_Manager::getInstance()->getConnection($connection)->unitOfWork->buildFlushTree($models);
                    
273            $models = array_reverse($models);
                    
274            foreach ($models as $model) {
                    
                
LocalFile.php https://bitbucket.org/kayahr/gitten.git | PHP | 276 lines
                    
1<?php
                    
2/*
                    
59    {
                    
60        return PHP_BASEURL . "/" . $this->path;
                    
61    }
                    
179        }
                    
180        return array_reverse($parents);
                    
181    }
                    
                
view.html.php https://bitbucket.org/talueses/joomla-cms.git | PHP | 317 lines
                    
1<?php
                    
2/**
                    
196		if ($feed_display_order == 'asc') {
                    
197			$newsfeed->items = array_reverse($newsfeed->items);
                    
198		}
                    
256			}
                    
257 			$path = array_reverse($path);
                    
258			foreach($path as $item)
                    
                
file.php https://bitbucket.org/codeyash/bootstrap.git | PHP | 207 lines
                    
1<?php
                    
2
                    
65	 * Parses a string using all of the previously set variables.  Allows you to
                    
66	 * use something like %APPPATH% in non-PHP files.
                    
67	 *
                    
81	/**
                    
82	 * Replaces FuelPHP's path constants to their string counterparts.
                    
83	 *
                    
136
                    
137		return array_reverse($paths);
                    
138	}
                    
                
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
                    
                
Migrator.php https://gitlab.com/techniconline/kmc | PHP | 400 lines
                    
1<?php namespace Illuminate\Database\Migrations;
                    
2
                    
183
                    
184        $migrations = array_reverse($this->repository->getRan());
                    
185
                    
236    {
                    
237        $files = $this->files->glob($path . '/*_*.php');
                    
238
                    
244        $files = array_map(function ($file) {
                    
245            return str_replace('.php', '', basename($file));
                    
246
                    
265    {
                    
266        foreach ($files as $file) $this->files->requireOnce($path . '/' . $file . '.php');
                    
267    }
                    
                
view.php https://github.com/galitush2005/RTL-BIDI-Hebrew-Moodle-Plugins.git | PHP | 282 lines
                    
1<?php
                    
2
                    
3/**
                    
4* view.php
                    
5*
                    
13*/
                    
14    // include("debugging.php");
                    
15
                    
15
                    
16    require_once("../../config.php");
                    
17    require_once($CFG->dirroot.'/blocks/file_manager/lib.php');
                    
17    require_once($CFG->dirroot.'/blocks/file_manager/lib.php');
                    
18    require_once($CFG->dirroot.'/blocks/file_manager/print_lib.php');
                    
19
                    
27    if (! $course = get_record('course', 'id', $id) ) {
                    
28        error('That\'s an invalid course id', "view.php?id={$id}&amp;groupid={$groupid}&amp;rootdir={$rootdir}");
                    
29    }
                    
                
ReaderFeedback.hooks.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 196 lines
                    
1<?php
                    
2
                    
133			$form .= '&#160;' . Xml::openElement( 'select', $attribs );
                    
134			$levels = array_reverse($levels,true);
                    
135			foreach( $levels as $i => $name ) {
                    
181			?><li id="t-rating"><?php
                    
182				?><a href="<?php echo htmlspecialchars( $skin->data['nav_urls']['ratinghist']['href'] ) ?>"><?php
                    
183					echo $skin->msg( 'ratinghistory-link' );
                    
183					echo $skin->msg( 'ratinghistory-link' );
                    
184				?></a><?php
                    
185			?></li><?php
                    
                
Set.php https://github.com/eexit/Smak.git | PHP | 362 lines
                    
1<?php
                    
2
                    
9
                    
10require_once __DIR__ . '/../../../../vendor/autoload.php';
                    
11
                    
276        
                    
277        $this->array(array_reverse($expected))->isEqualTo($results);
                    
278    }
                    
                
Abstract.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 418 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Abstract.php 21330 2010-03-04 22:07:38Z thomas $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Locale.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Locale/Math.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Locale/Format.php';
                    
36
                    
94        if (isset($this->_units[$type]) === false) {
                    
95            require_once 'Zend/Measure/Exception.php';
                    
96            throw new Zend_Measure_Exception("Type ($type) is unknown");
                    
                
 

Source

Language