Jump to content

Как вывести КЛЮЧ массива по его ЗНАЧЕНИЮ?


TemKa_SD
 Share

Recommended Posts

Здравствуйте. Мне нужно вывести ключ массива по его значению, как это можно сделать?

 

		\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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...