From d7273a7388d98fc9ea2e7a584aa531f5e0151b08 Mon Sep 17 00:00:00 2001 From: Sarvar <56576654+sarvar-akbarov@users.noreply.github.com> Date: Sat, 1 Jul 2023 10:11:52 +0500 Subject: [PATCH] Added solution in PHP language --- solutions/023.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/solutions/023.md b/solutions/023.md index df25729..39c9927 100644 --- a/solutions/023.md +++ b/solutions/023.md @@ -64,4 +64,22 @@ class Solution: return max(sum(account) for account in accounts) ``` +#### PHP +```php +class Solution { + + /** + * @param Integer[][] $accounts + * @return Integer + */ + function maximumWealth($accounts) { + $max = 0; + foreach($accounts as $key => $account){ + $max = max($max, array_sum($account)); + } + return $max; + } +} +``` + ***NB***: If you want to get community points please suggest solutions in other languages as merge requests.