match values of 2 arrays in smarty-urgent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fariba123
    New Member
    • Oct 2006
    • 17

    match values of 2 arrays in smarty-urgent

    there are two arrays:

    $players = array(
    "23" => "Michael Jordan",
    "32" => "Michael Johnson"
    );

    $current_player = array(
    "player_id" => "23",
    "age" => "22"
    );

    how can i get the name of the player with player_id 23

    can anyone help me out?

    thanks in advance.

    fariba
Working...