Questions tagged [associative]

This tag is used mostly regarding associative arrays (but better use tag "associative-array" for that) and sometimes in the mathematic sense of tag "associativity", the associative property of binary operations.

435 questions
1
vote
3 answers

want to make cartesian product of one array having sub arrays php

Array ( [Order] => Array ( [0] => Alan Donald [1] => AB Divilliars [2] => Craig Macmillan [3] => Faf Duplesis [4] => Hashim Amla [5] => Imran Tahir [6]…
Puneet Uppal
  • 195
  • 10
1
vote
1 answer

How to search an Associative array if a value is between two elements

I have the following: I have a certain value 14.50 And the following associative array: element a element b element c row 1 8 12 house row 2 12 15 …
E Schumie
  • 31
  • 6
1
vote
2 answers

PHP associative array: special character?

I have this MySQL selection query : SELECT country, COUNT(*) FROM $database GROUP BY country The output is an associative array with many rows and two columns: [country],[COUNT(*)] Now I would like to print them out all BUT with if…
giro_2000
  • 11
  • 1
1
vote
1 answer

How can I filter data from my array php?

I am really struggling filtering my data.I know how to access parts of the array but am struggling on how to filter. I know how to do it in SQL SUM & count) but not when it comes to PHP arrays please help. I need to filter some of my data stored in…
JIMMY THE CODE
  • 161
  • 1
  • 7
1
vote
1 answer

Fully associative cache offset

When dealing with 32 bit addresses and fully associative cache architecture, do we take away an offset from the address when comparing it with the tag of the cache, or do we take the full 32 bit address and compare it with the tag in the cache? I…
Alk
  • 5,215
  • 8
  • 47
  • 116
1
vote
1 answer

Need help on a Twig issue with associative arrays

My controller sends to Twig the following associative array in a variable called 'petition'; Array ( [0] => stdClass Object ( [id] => 1 [doctype] => "somedoc" [nrdoc] => "99" [datadoc] =>…
1
vote
0 answers

Passing parameter as clob associative array in C#

i have an issue when inserting string as clob from C#. Let me explain first what i'm doing: i have declared in a package the following type TYPE assocarrayclob_t IS TABLE OF CLOB INDEX BY BINARY_INTEGER; than i use it in my stored procude to insert…
Evald.i
  • 99
  • 1
  • 6
1
vote
2 answers

PHP, Associative arrays with sessions

I'm just looking for a push in the right direction here. I am trying to create an associate array using a session. The intent is that when a user adds an item to the cart, the item and quantity is added to the array. I am getting a "Parse error:…
mallorz
  • 55
  • 1
  • 8
1
vote
2 answers

Target inline JSON using jQuery .getJSON or similar method

I am attempting to get data from an inline array wrapped in a