Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'apiClass.php';
- function HeroID($id, $array) {
- foreach ($array as $key => $val) {
- if ($val['hero_id'] === $id) {
- return $key;
- }
- }
- return null;
- }
- $HeroList = HeroList();
- $id = HeroID('2', $HeroList);
- echo "<pre>";
- echo $HeroList[$id][disp_name];
- echo "</pre>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement