Answer the question
In order to leave comments, you need to log in
How to get the minimum value of an array given its name?
Hello, I need a code that will return 2 values, namely "Array string names" and "Value of this string"
For example:
<?php
$xml = simplexml_load_file("xml.xml");
$dates = array();
foreach($xml as $line){
$dlg = array(".", ",", ":", " ");
replaced = str_replace($dlg, "", $line->name);
$rdate = date(d.m.Y.H.i.s) - $replaced;
//Здесь нужно сделать определение на самое маленькое значение массива + его название, крч мне нужен объект у которого самое маленькое значение в массиве
}
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question