From 8d257d05a9e8941435813869e93675cfb64a042f Mon Sep 17 00:00:00 2001 From: vbawol Date: Sun, 5 Apr 2015 09:05:40 -0500 Subject: [PATCH] Update FindPlayerUIDByName.php --- Tools/PHP/FindPlayerUIDByName.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Tools/PHP/FindPlayerUIDByName.php b/Tools/PHP/FindPlayerUIDByName.php index 5ff40016..893cfe38 100644 --- a/Tools/PHP/FindPlayerUIDByName.php +++ b/Tools/PHP/FindPlayerUIDByName.php @@ -2,7 +2,10 @@ /* Example PHP code - Case-insensitive search for player Name returns UID's. Requires: PHP5 and https://github.com/phpredis/phpredis installed - EpochMod.com by [VB]AWOL + by [VB]AWOL - EpochMod.com + + This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. + http://creativecommons.org/licenses/by-sa/4.0/ */ $search = 'Mr. Jones'; @@ -19,7 +22,7 @@ foreach ($playerNames as $key => $value) { if (stripos($data, $search) !== false) { $key = explode(":", $value); echo "

" . $key[1] . "

" ; - break; + break; // comment out this line if you want all matches and not just the first. } }