Tags: PHP 5.x PHP 7.x PHP 8.x
Question: Given a number. What way to find the number closest to given in unsorted array?
Data: Unsorted numbers array: [5, 56, 23, 1, 89, 3] Number: 90
Solution: