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.