PageRenderTime 512ms queryFilters 0ms Sphinxql 243ms GetByIds 234ms meta 0ms repositoryFilters 6ms languageFilters 0ms sourceFilters 1ms

77,380 results for 'php array_unique repo:broderboy/shannonbroder-wordpress' (512 ms)

Source

Language

Repository

array_unique.html https://github.com/andriuspetrauskis/phpjs.git | HTML | 89 lines
29layout: function
30title: PHP's array_unique in JavaScript
31description: >-
32  Here’s what our current JavaScript equivalent to <a
33  href="http://php.net/manual/en/function.array_unique.php">PHP's
34  array_unique</a> looks like.
37language: php
38permalink: php/array/array_unique/
39alias:
41  - /functions/array/array_unique/
42  - /php/array_unique/
43  - /functions/array_unique/
45{% codeblock lang:javascript %}module.exports = function array_unique (inputArr) { // eslint-disable-line camelcase
46  //  discuss at: http://locutus.io/php/array_unique/
47  // original by: Carlos R. L. Rodrigues (http://www.jsfromhell.com)
array_unique.html git://github.com/kvz/phpjs.git | HTML | 89 lines
29layout: function
30title: PHP's array_unique in JavaScript
31description: >-
32  Here’s what our current JavaScript equivalent to <a
33  href="https://php.net/manual/en/function.array-unique.php">PHP's
34  array_unique</a> looks like.
37language: php
38permalink: php/array/array_unique/
39alias:
41  - /functions/array/array_unique/
42  - /php/array_unique/
43  - /functions/array_unique/
45{% codeblock lang:javascript %}module.exports = function array_unique (inputArr) { // eslint-disable-line camelcase
46  //  discuss at: https://locutus.io/php/array_unique/
47  // original by: Carlos R. L. Rodrigues (https://www.jsfromhell.com)
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	/**
php-array.el https://github.com/andreaja/dotemacs.git | Lisp | 719 lines
21;; Arrays handling functions
22;; http://php.net/manual/en/ref.array.php
23;; file:///usr/share/doc/php-doc/html/ref.array.html
32
33(define-skeleton php-array_chunk
34  "Insert an array_chunk statement. Split an array into chunks"
41
42(define-skeleton php-array_column
43  "Insert an array_column statement. Return the values from a single column in the input array"
97
98(define-skeleton php-array_diff_ukey
99  "Insert an array_diff_ukey statement. Computes the difference of arrays using a callback function on the keys for comparison"
448
449(define-skeleton php-array_unique
450  "Insert an array_unique statement. Removes duplicate values from an array"
array_unique.js git://github.com/kvz/phpjs.git | JavaScript | 44 lines
1module.exports = function array_unique (inputArr) { // eslint-disable-line camelcase
2  //  discuss at: https://locutus.io/php/array_unique/
3  // original by: Carlos R. L. Rodrigues (https://www.jsfromhell.com)
12  //      note 1: also should be sorted (asort?) first according to docs
13  //   example 1: array_unique(['Kevin','Kevin','van','Zonneveld','Kevin'])
14  //   returns 1: {0: 'Kevin', 2: 'van', 3: 'Zonneveld'}
14  //   returns 1: {0: 'Kevin', 2: 'van', 3: 'Zonneveld'}
15  //   example 2: array_unique({'a': 'green', 0: 'red', 'b': 'green', 1: 'blue', 2: 'red'})
16  //   returns 2: {a: 'green', 0: 'red', 1: 'blue'}
array_unique.js https://github.com/andriuspetrauskis/phpjs.git | JavaScript | 44 lines
1module.exports = function array_unique (inputArr) { // eslint-disable-line camelcase
2  //  discuss at: http://locutus.io/php/array_unique/
3  // original by: Carlos R. L. Rodrigues (http://www.jsfromhell.com)
12  //      note 1: also should be sorted (asort?) first according to docs
13  //   example 1: array_unique(['Kevin','Kevin','van','Zonneveld','Kevin'])
14  //   returns 1: {0: 'Kevin', 2: 'van', 3: 'Zonneveld'}
14  //   returns 1: {0: 'Kevin', 2: 'van', 3: 'Zonneveld'}
15  //   example 2: array_unique({'a': 'green', 0: 'red', 'b': 'green', 1: 'blue', 2: 'red'})
16  //   returns 2: {a: 'green', 0: 'red', 1: 'blue'}
dbmodel.php https://github.com/bhavan/newv1.git | PHP | 1,862 lines
1<?php
2/**
4 *
5 * @version     $Id: dbmodel.php 1869 2010-12-17 11:54:52Z geraint $
6 * @package     JEvents
364		// What if join multiplies the rows?
365		// Useful MySQL link http://forums.mysql.com/read.php?10,228378,228492#msg-228492
366		// concat with group
459		array_push($ids,0);
460		$ids = array_unique($ids);
461		
461		
462		// As an alternative to avoid the temporary table  we could use php array_unique and array_slice to get the list of ids - with no memory issues.
463		
541			// What if join multiplies the rows?
542			// Useful MySQL link http://forums.mysql.com/read.php?10,228378,228492#msg-228492
543			// concat with group
dbmodel.php https://github.com/bhavan/v3.git | PHP | 1,867 lines
1<?php
2/**
4 *
5 * @version     $Id: dbmodel.php 1869 2010-12-17 11:54:52Z geraint $
6 * @package     JEvents
364		// What if join multiplies the rows?
365		// Useful MySQL link http://forums.mysql.com/read.php?10,228378,228492#msg-228492
366		// concat with group
459		array_push($ids,0);
460		$ids = array_unique($ids);
461		
461		
462		// As an alternative to avoid the temporary table  we could use php array_unique and array_slice to get the list of ids - with no memory issues.
463		
541			// What if join multiplies the rows?
542			// Useful MySQL link http://forums.mysql.com/read.php?10,228378,228492#msg-228492
543			// concat with group
dbmodel.php https://github.com/bhavan/newv1.git | PHP | 1,802 lines
1<?php
2/**
4 *
5 * @version     $Id: dbmodel.php 1861 2010-11-05 09:58:44Z geraint $
6 * @package     JEvents
364		// What if join multiplies the rows?
365		// Useful MySQL link http://forums.mysql.com/read.php?10,228378,228492#msg-228492
366		// concat with group
459		array_push($ids,0);
460		$ids = array_unique($ids);
461		
461		
462		// As an alternative to avoid the temporary table  we could use php array_unique and array_slice to get the list of ids - with no memory issues.
463		
541			// What if join multiplies the rows?
542			// Useful MySQL link http://forums.mysql.com/read.php?10,228378,228492#msg-228492
543			// concat with group
dbmodel.php https://github.com/bhavan/v3.git | PHP | 1,802 lines
1<?php
2/**
4 *
5 * @version     $Id: dbmodel.php 1861 2010-11-05 09:58:44Z geraint $
6 * @package     JEvents
364		// What if join multiplies the rows?
365		// Useful MySQL link http://forums.mysql.com/read.php?10,228378,228492#msg-228492
366		// concat with group
459		array_push($ids,0);
460		$ids = array_unique($ids);
461		
461		
462		// As an alternative to avoid the temporary table  we could use php array_unique and array_slice to get the list of ids - with no memory issues.
463		
541			// What if join multiplies the rows?
542			// Useful MySQL link http://forums.mysql.com/read.php?10,228378,228492#msg-228492
543			// concat with group
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//    }
da_catalog_titleRecord.php https://github.com/jmjamison/da_catalog.git | PHP | 759 lines
44<div id="content">
45<?php
46	
51	//include the login file - db_login.php
52	//include('../db_login2.php');
53	//include('ISSRDA_login.php');
54	// set the include file
55	//include the login file - db_login.php
56	$sscnetInclude = "ISSRDA_login.php";
56	$sscnetInclude = "ISSRDA_login.php";
57	$mydesktopInclude = "../db_login2.php";
58	$currentInclude = $sscnetInclude;
536		//  INFO NOTE:  
537		// ok, array_unique seems to not work too well with multi-dimensional arrays - see documentation on php site
538		//  since the $dsname is the unique thingie here, just test on that below while looping through the array
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21