All Questions
257
questions
0
votes
0
answers
32
views
Laravel Multiple sheets with multiple heading rows
I already achieved the code for two rows but data is not aligning with the rows. I tried several methods to map the data but still the data is showing after the headings
This is what I want to ...
0
votes
1
answer
117
views
MapRequestPayload cannot acces information with hyphen
I have an app in Symfony 6.4 where I use attribute MapRequestPayload to parse incoming data. Until now it worked fine but I've started using external service (mailgun) to get some data and there is a ...
0
votes
2
answers
48
views
Map values between two arrays to generate a flat, associative array
I have two arrays, one is a list of status IDs and the corresponding numbers of records that are that status ID. The second array is the names of the statuses. I'd like to tie them together so I have ...
0
votes
0
answers
18
views
Not able to map multiple child in array using core php in excel spreadsheet
I have excel sheet with list of types and each types has labels and each labels has values in excel
I am trying to collect in array as Key & Value so that I can upload in server
enter image ...
-2
votes
4
answers
135
views
Array time slots: check for appointment availability by searched datetime and next 2 datetimes
I'm programming an appointment scheduling system. It checks several Google calendars.
I divided the day (9:00 a.m. - 6:00 p.m.) into 10-minute slots.
Now I have an array with the respective slots and ...
0
votes
3
answers
81
views
Group 2d array data by one column, populate subarrays with defaults, sum values from another column using a mapping array
I am trying to group data from a 2d array while leveraging a lookup array to ensure that default values exist in each group.
My lookup/mapping array associates language ids with language names.
$langs ...
0
votes
0
answers
82
views
Leaflet markers not showing
The markers from leaflet map are reading from a postgresql query, which is influenced by filters on the page that the map is on. However whenever I open this page, with or without the relevant filters,...
-1
votes
5
answers
125
views
Map parenthetical substrings from one array to another array and use a fallback string when no parenthetical substring
After modifying a query result, I end up with an array like the following example:
[0] => foo (bar1)
[1] => bar (foo2)
[2] => bas
[3] => foo (bas3)
[4] => bar
As you can see, some of ...
0
votes
0
answers
1k
views
How to Import Excel File to Database with Mapping Laravel
Hi i created a demo project that i can with import excel files and get them into my database with laravel excel but what i want to do is with mapping not just a simple import and get them into the ...
0
votes
2
answers
193
views
Sum the prices from an array until they correspond with a specific value, that is defined in a different array
As an example I have two arrays:
Multidimensional Array 1:
$line_items = [
0 => ['price' => 41.99, 'id' => 12, 'quantity' => 1],
1 => ['price' => 155.95, 'id' => 11, '...
-1
votes
2
answers
68
views
Create new column in 2d array that represents the count of related values in another 2d array
I have an array that contains data of incoming mail, looks something like this:
$incomingMail = [
0 => [
'title' => 'Title 1',
'areaCode' => 101
],
1 => [
'title'...
0
votes
1
answer
56
views
POST route in Leaflet map giving errors
Is there any way to use a form in leaflet mapping to open another page?
I'm using a post route for this and have even tried embedding it in an tag but to no avail.
At the moment the form data is in a ...
1
vote
2
answers
93
views
Convert flat, associative array into indexed 2d array with associative rows [duplicate]
I have an array like this
[
123456 => 'John Doe'
654321 => 'Doe John'
]
I want to change the array key (123456 and 654321) into an index (0,1,2,3,....,n) and save it into value, the ...
1
vote
2
answers
39
views
Substitute column value in each row of a 2d array based on other rows in the same array
I have an array like so:
$array = [
['record' => 1, 'sponsor' => 2, 'email' => '[email protected]'],
['record' => 2, 'sponsor' => 2, 'email' => '[email protected]'],
['record' ...
0
votes
2
answers
49
views
Restructure 2d array so that column values become row values (transpose but preserve first level keys)
The situation is as follows. I have a parent array which looks like the following:
$parent = [
1 => ['test1', 'test2'],
2 => ['test1_1', 'test2_2'],
];
I would like to group the data by ...