Answer the question
In order to leave comments, you need to log in
How to work with multidimensional arrays?
Hello again, again I'm with a child's problem and would be very grateful if you would try to explain how it works.
$garages = [
1 => ['id' => 1, 'name' => 'Гараж на улице 1', 'size' => 1],
7 => ['id' => 7, 'name' => 'Подземная парковка', 'size' => 100],
23 => ['id' => 23, 'name' => 'У домика в деревне', 'size' => 2],
];
// машины
$cars = [
['name' => 'Белый Ford', 'garageId' => 7],
['name' => 'Черный Уаз', 'garageId' => 1],
['name' => 'Синий Таз', 'garageId' => 7],
];
Answer the question
In order to leave comments, you need to log in
foreach($cars as $car) {
echo "Машина \"{$car['name']}\" стоит в \"{$garages[$car['garageId']]['name']}\"", PHP_EOL;
}
The query throws an error for the variable name &True . Matches the keyword True . What a stupid name? Name essentially - &Modifier . If the value of the parameter is always true, then why is the parameter even there? Compare with the keyword or remove the comparison altogether - if the Modifier attribute from the Modifiers directory, to which the Nomenclature reference refers to with its attribute (well, you wrapped up with the architecture, you can still make it much easier), is boolean, then it is enough in the WHERE section . Example: Select * from Catalog.Nomenclature Where not Deletion Mark .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question