TemKa_SD Posted November 10, 2018 Share Posted November 10, 2018 Здравствуйте. Мне нужно вывести ключ массива по его значению, как это можно сделать? \IPS\Request::i()->month = '5'; \IPS\Request::i()->year = '5'; $sqlCurrentDate = " AND month='" . $month . "' AND year='" . $year . "' "; Вместо 5 должен быть ключ текущего значения $month и $year соответственно. Link to comment Share on other sites More sharing options...
newbie Posted November 13, 2018 Share Posted November 13, 2018 Мне нужно вывести ключ массива по его значению?http://php.net/manual/ru/function.array-search.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now