PageRenderTime 115ms queryFilters 0ms Sphinxql 503ms GetByIds 485ms meta 0ms repositoryFilters 8ms languageFilters 1ms sourceFilters 39ms

22,910 results for 'php array_unique repo:GreyTeardrop/socionicasys-forum' (115 ms)

Source

Language

Repository

phpToJS.php git://github.com/phpnode/YiiJS.git | PHP | 1,640 lines
3 * A woefully naive, context unaware PHP to JavaScript token transformer.
4 * Relies on php.js for a lot of the built in PHP functions.
5 * HERE BE DRAGONS!
152		'array_sum' => 'php.array_sum',
153		'array_unique' => 'php.array_unique',
154		'array_unshift' => 'php.array_unshift',
1414 */
1415class phpClass extends phpBase {
1416	
1512 */
1513class phpProperty extends phpBase {
1514	/**
1547 */
1548class phpMethod extends phpBase {
1549	/**
Item.php https://git01.codeplex.com/officialwp | PHP | 2,965 lines
729	 *
730	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
731	 * @return int|string|null
808	 *
809	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
810	 * @return int|string|null
861	 *
862	 * @param string $date_format Supports any PHP date format from {@see http://php.net/strftime} (empty for the raw data)
863	 * @return int|string|null
884	 * @see get_date
885	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
886	 * @return int|string|null
902	 * @see get_updated_date
903	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
904	 * @return int|string|null
filter.function.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 560 lines
1<?php
2/***************************************************************
126		global $adb;
127		include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'core.resource.class.php');
128		$resObj = new CoreResourceBase();
145		
146		$attachments_idstmp = array_unique($attachments_ids);
147		$attachments_arrtmp = $resObj->getItemsValues(array('ids' => $attachments_idstmp));
171	if( $isfront == true && preg_match_all("/\{\{block\}\}(\d+)\{\{\/block\}\}/i", $content, $matches) ) {
172		include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'module/block/block.class.php');
173		$blkObj = new BlockBase();
178		
179		$blocks_idstmp = array_unique($blocks_ids);
180		$blocks_arrtmp = $blkObj->getItems(array('ids' => $blocks_idstmp));
216	if( $isfront == true && preg_match_all("/\{\{form\}\}(\d+)\{\{\/form\}\}/i", $content, $matches) ) {
217		include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'frontend.filter.class.php');
218		$_feObj = new FrontendFilterBase();
advanced_search_results.php http://prohits.googlecode.com/svn/trunk/ | PHP | 970 lines
75
76require("../common/site_permission.inc.php");
77include("common_functions.inc.php");
77include("common_functions.inc.php");
78require("../common/common_fun.inc.php");
79
86
87require("site_header.php");
88
312  }
313  $hit_selected_bait_arr = array_unique($hit_selected_bait_arr);
314  $hit_selected_band_arr = array_unique($hit_selected_band_arr);
314  $hit_selected_band_arr = array_unique($hit_selected_band_arr);
315  $TPP_hit_selected_bait_arr = array_unique($TPP_hit_selected_bait_arr);
316  $TPP_hit_selected_band_arr = array_unique($TPP_hit_selected_band_arr);
_comments.html https://github.com/evangelia-mitsopoulou/phpjs.git | HTML | 365 lines
52on 2010-06-09 21:10:58 <br />
53@t: Associative arrays aren't native to JavaScript, but JavaScript objects share similarities to PHP associative arrays, so to try and support associative arrays, the functions on PHP.JS convert JavaScript arrays to JavaScript objects.
54<hr />
78on 2010-03-19 14:53:14 <br />
79@harald: Sorry, fixed in git: http://github.com/kvz/phpjs/raw/master/functions/array/array_unique.js . See https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/hasOwnProperty for an explanation of the method. It is used to make sure we are only iterating over the immediate properties of the object, and not any that may have been added on an inherited class or on the Object/Array prototype itself...
80<hr />
203on 2008-07-25 08:47:53 <br />
204@ sankai: Thank you so much! But this array_unique does not support associative arrays (javascript objects). So unlike PHP's implementation, arrays that have non-numeric keys do not work.
205
226    // *     returns 2: [1,2,3,'1','2','3']
227    // *     example 3: array_unique([1,'a','a','1','3',3,'b','c','b',1]);
228    // *     returns 3: [1,'a','1','3',3,'b','c']
360on 2008-04-30 12:27:53 <br />
361maybe i'm being stupid, but PHP array_unique returns an array, not a boolean.
362&amp;quot;Takes an input array  and returns a new array without duplicate values.&amp;quot;
import_ocs_db.php http://gespac.googlecode.com/svn/trunk/ | PHP | 514 lines
10
11<?PHP
12
31	// lib
32	require_once ('../fonctions.php');
33	include_once ('../config/databases.php');
33	include_once ('../config/databases.php');
34	include_once ('../../class/Sql.class.php');
35	
57	function search_in_array($needle, $haystack, $field=0) {
58		foreach($haystack as $key=>$value) { // association à chaque élément du tableau en entrée d'un autre tableau d'éléments. (permet de palier au manquement de la fonction in_array de php)
59			$current_key=$key;
437	
438	$unique_marques_ajoutees = array_unique (explode ("<br>", $marques_ajoutees));
439	$liste_marques_ajoutees = implode ("<br>", $unique_marques_ajoutees);
TestRedis.php git://github.com/owlient/phpredis.git | PHP | 2,698 lines
1<?php
2require_once 'PHPUnit/Framework/TestCase.php';
3
606//		if(function_exists('proc_open')) {
607//			$env = array('PHPREDIS_key' =>'list', 'PHPREDIS_value' => 'value');
608//			$process = proc_open('php', $params, $pipes, '/tmp', $env);
610//			if (is_resource($process)) {
611//				fwrite($pipes[0],  '<?php 
612//	sleep(2);
617//	}
618//	$r->lPush($_ENV["PHPREDIS_key"], $_ENV["PHPREDIS_value"]);
619//	?' . '>');
1457//
1458//	$this->assertTrue($t_php - $t_redis < 10000); // check that it's approximately what we've measured in PHP.
1459//    }
mcp.comment.php https://bitbucket.org/sims/heartbeets.git | PHP | 1,691 lines
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
330
331		$ids = array_unique($ids);
332
366		// Remove duplicate keys.
367		$ids = array_unique($ids);
368
958			// Quicker and updates just the channels
959			foreach(array_unique($recount_channels) as $channel_id) 
960			{ 
1256
1257		$entry_ids	= array_unique($entry_ids);
1258		$author_ids = array_unique($author_ids);
1258		$author_ids = array_unique($author_ids);
1259		$channel_ids = array_unique($channel_ids);
1260
mcp.comment.php https://bitbucket.org/sims/heartbeets.git | PHP | 1,691 lines
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
330
331		$ids = array_unique($ids);
332
366		// Remove duplicate keys.
367		$ids = array_unique($ids);
368
958			// Quicker and updates just the channels
959			foreach(array_unique($recount_channels) as $channel_id) 
960			{ 
1256
1257		$entry_ids	= array_unique($entry_ids);
1258		$author_ids = array_unique($author_ids);
1258		$author_ids = array_unique($author_ids);
1259		$channel_ids = array_unique($channel_ids);
1260
lib.preassessment.php https://github.com/wanadli75/cocalms.git | PHP | 683 lines
1<?php defined("IN_FORMA") or die('Direct access is forbidden.');
2
21 *
22 * ( editor = Eclipse 3.2.0[phpeclipse,subclipse,WTP], tabwidth = 4 )
23 */
68
69		require_once($GLOBALS['where_lms'].'/lib/lib.course.php');
70		$this->man_course = new Man_Course();
141				if ($id_test) {
142					require_once(_lms_.'/modules/organization/orglib.php');
143					$odb= new OrgDirDb($id_course);
268	function updateAssessmentUser($id_assessment, $user_type, $user_list) {
269		require_once(_lms_.'/lib/lib.course.php');
270		require_once(_lms_.'/admin/models/SubscriptionAlms.php');
545			$effects 	= $this->parseEffects($rule[RULE_EFFECT]);
546			$effects_parsed['course'] 	= array_unique(array_merge($effects_parsed['course'], $effects['course']));
547			$effects_parsed['coursepath'] = array_unique(array_merge($effects_parsed['coursepath'], $effects['coursepath']));
Item.php https://bitbucket.org/synergylearning/campusconnect.git | PHP | 2,965 lines
729	 *
730	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
731	 * @return int|string|null
808	 *
809	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
810	 * @return int|string|null
861	 *
862	 * @param string $date_format Supports any PHP date format from {@see http://php.net/strftime} (empty for the raw data)
863	 * @return int|string|null
884	 * @see get_date
885	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
886	 * @return int|string|null
902	 * @see get_updated_date
903	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
904	 * @return int|string|null
Item.php https://github.com/dongsheng/moodle.git | PHP | 2,965 lines
729	 *
730	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
731	 * @return int|string|null
808	 *
809	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
810	 * @return int|string|null
861	 *
862	 * @param string $date_format Supports any PHP date format from {@see http://php.net/strftime} (empty for the raw data)
863	 * @return int|string|null
884	 * @see get_date
885	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
886	 * @return int|string|null
902	 * @see get_updated_date
903	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
904	 * @return int|string|null
Item.php https://gitlab.com/math4youbyusgroupillinois/WordPress.git | PHP | 2,964 lines
729	 *
730	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
731	 * @return int|string|null
808	 *
809	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
810	 * @return int|string|null
861	 *
862	 * @param string $date_format Supports any PHP date format from {@see http://php.net/strftime} (empty for the raw data)
863	 * @return int|string|null
884	 * @see get_date
885	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
886	 * @return int|string|null
902	 * @see get_updated_date
903	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
904	 * @return int|string|null
Item.php https://gitlab.com/jessehall/hudson_alpha.git | PHP | 2,964 lines
729	 *
730	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
731	 * @return int|string|null
808	 *
809	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
810	 * @return int|string|null
861	 *
862	 * @param string $date_format Supports any PHP date format from {@see http://php.net/strftime} (empty for the raw data)
863	 * @return int|string|null
884	 * @see get_date
885	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
886	 * @return int|string|null
902	 * @see get_updated_date
903	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
904	 * @return int|string|null
Item.php git://github.com/wordpress/wordpress.git | PHP | 2,966 lines
742	 *
743	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
744	 * @return int|string|null
819	 *
820	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
821	 * @return int|string|null
870	 *
871	 * @param string $date_format Supports any PHP date format from {@see http://php.net/strftime} (empty for the raw data)
872	 * @return int|string|null
891	 * @see get_date
892	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
893	 * @return int|string|null
909	 * @see get_updated_date
910	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
911	 * @return int|string|null
Item.php git://github.com/simplepie/simplepie.git | PHP | 2,966 lines
742	 *
743	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
744	 * @return int|string|null
819	 *
820	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
821	 * @return int|string|null
870	 *
871	 * @param string $date_format Supports any PHP date format from {@see http://php.net/strftime} (empty for the raw data)
872	 * @return int|string|null
891	 * @see get_date
892	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
893	 * @return int|string|null
909	 * @see get_updated_date
910	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
911	 * @return int|string|null
Item.php git://github.com/moodle/moodle.git | PHP | 2,966 lines
742	 *
743	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
744	 * @return int|string|null
819	 *
820	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
821	 * @return int|string|null
870	 *
871	 * @param string $date_format Supports any PHP date format from {@see http://php.net/strftime} (empty for the raw data)
872	 * @return int|string|null
891	 * @see get_date
892	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
893	 * @return int|string|null
909	 * @see get_updated_date
910	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
911	 * @return int|string|null
Item.php git://github.com/markjaquith/WordPress.git | PHP | 2,966 lines
742	 *
743	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
744	 * @return int|string|null
819	 *
820	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
821	 * @return int|string|null
870	 *
871	 * @param string $date_format Supports any PHP date format from {@see http://php.net/strftime} (empty for the raw data)
872	 * @return int|string|null
891	 * @see get_date
892	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
893	 * @return int|string|null
909	 * @see get_updated_date
910	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
911	 * @return int|string|null
Item.php https://bitbucket.org/broderboy/shannonbroder-wordpress | PHP | 2,965 lines
729	 *
730	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
731	 * @return int|string|null
808	 *
809	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
810	 * @return int|string|null
861	 *
862	 * @param string $date_format Supports any PHP date format from {@see http://php.net/strftime} (empty for the raw data)
863	 * @return int|string|null
884	 * @see get_date
885	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
886	 * @return int|string|null
902	 * @see get_updated_date
903	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
904	 * @return int|string|null
Item.php https://bitbucket.org/fivefilters/full-text-rss.git | PHP | 2,989 lines
750	 *
751	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
752	 * @return int|string|null
829	 *
830	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date} (empty for the raw data)
831	 * @return int|string|null
882	 *
883	 * @param string $date_format Supports any PHP date format from {@see http://php.net/strftime} (empty for the raw data)
884	 * @return int|string|null
905	 * @see get_date
906	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
907	 * @return int|string|null
923	 * @see get_updated_date
924	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
925	 * @return int|string|null
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21