assuming I have the following array definition:
Code: Select all
<?php
$a = Array('a' => 'one', 'b' => 'two', 'c' => 'three', 'd' => 'four');
?>thanks in advance
Moderator: General Moderators
Code: Select all
<?php
$a = Array('a' => 'one', 'b' => 'two', 'c' => 'three', 'd' => 'four');
?>Code: Select all
$the_key = array_search($your_variable, $a);