Answer the question
In order to leave comments, you need to log in
How to make a certain array from the values obtained via fgetcsv()?
Hello everyone, there is a csv with the following data
How can I sort them into the following array:
$arr = [
'0.1' => [ // значение с правой колонки
'old' => 0.1, // значение с правой колонки
'new' => ['0.1'] // значение с левой колонки
],
...,
'01.11.1' => [
'old' => '01.11.1',
'new' => [
'01.11.1',
'01.11.11',
....
'01.11.2',
]
]
// и т.д.
Answer the question
In order to leave comments, you need to log in
I am an artist with my mother.
ok, ok: https://jsfiddle.net/j9052yja/3/
Move hands to the right place for such designers)
Either svg, or you need a solid color on the background.
the first block has :after the picture on the right, the second has :before the picture on the left, the third :after has the picture on the right.
Text centered, image positioned absolute. It seems nothing complicated. A picture is a line from one text to another.
It seems to me alone that this is a normal border?! 1 element - top, left and bottom are visible, middle - top, right, bottom, bottom - similar to the top. If you put down the elements well, it is generally imperceptible that this is a border.
$sorted = []; // Результирующий массив
foreach ($lines as $line) { // $line[0] - old, $line[1] - new
$sorted[$line[1]]['old'] = $line[1];
$sorted[$line[1]]['new'][] = $line[0];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question