$v){$total = $k; break;} break; case 'range': sort($array); $sml = $array[0]; rsort($array); $lrg = $array[0]; $total = $lrg - $sml; break; } return $total; } } $collected['19102'] = ['muni' => "10102
Avenue of the Arts", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19103'] = ['muni' => "19103
Rittenhouse Square", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19104'] = ['muni' => "19104
Mantua", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19106'] = ['muni' => "19106
Old City, Society Hill", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19107'] = ['muni' => "19107
Washington Square West", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19111'] = ['muni' => "19111
Burlholme, Castor Gardens, Fox Chase", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19114'] = ['muni' => "19114
Academy Gardens, Torresdale", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19115'] = ['muni' => "19115
Bustleton, Pine Valley", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19116'] = ['muni' => "19116
Somerton", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19118'] = ['muni' => "19118
Chestnut Hill", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19119'] = ['muni' => "19118
Mount Airy", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19120'] = ['muni' => "19120
Feltonville, Lawncrest, Olney", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19121'] = ['muni' => "19121
Brewerytown, Strawberry Mansion", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19122'] = ['muni' => "19122
Kensington", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19123'] = ['muni' => "19123
Northern Liberties", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19124'] = ['muni' => "19124
Frankford, Juniata", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19125'] = ['muni' => "19125
Fishtown, East Kensington", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19126'] = ['muni' => "19126
Oak Lane (East & West)", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19127'] = ['muni' => "19127
Manayunk", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19128'] = ['muni' => "19128
Andorra, Manayunk, Roxborough", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19129'] = ['muni' => "19129
East Falls", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19130'] = ['muni' => "19130
Art Museum, Fairmount", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19131'] = ['muni' => "19131
Wynnefield, Carroll Park", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19132'] = ['muni' => "19132
Allegheny West, North Philadelphia, Strawberry Mansion", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19133'] = ['muni' => "19133
Hartranft", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19134'] = ['muni' => "19134
Harrowgate, Kensington, Port Richmond", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19135'] = ['muni' => "19135
Mayfair, Tacony, Wissinoming", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19136'] = ['muni' => "19136
Holmesburg, Mayfair, Winchester Park", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19137'] = ['muni' => "19137
Bridesburg", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19138'] = ['muni' => "19138
Germantown, Ogontz, Oak Lane (East & West)", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19139'] = ['muni' => "19139
Cobbs Creek, West Philadelphia, Mill Creek, Haddington", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19140'] = ['muni' => "19140
Hunting Park, Nicetown", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19141'] = ['muni' => "19141
Fern RockLogan, Ogontz, Olney", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19142'] = ['muni' => "19142
Elmwood Park, Kingsessing, Southwest", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19143'] = ['muni' => "19143
Cedar Park, Cobbs Creek, Kingsessing", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19144'] = ['muni' => "19144
Germantown (East & West)", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19145'] = ['muni' => "19145
Girard Estates, Newbold, South Philadelphia", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19146'] = ['muni' => "19146
Fitler Square, Graduate Hospital, Grays Ferry", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19147'] = ['muni' => "19147
Bella Vista, Passyunk Square", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19148'] = ['muni' => "19148
Dickinson Narrows, Passyunk Crossing, Moyamensing", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19149'] = ['muni' => "19149
Castor Gardens, Mayfair, Oxford Circle, Northwood", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19150'] = ['muni' => "19150
Cedarbrook, Mount Airy", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19151'] = ['muni' => "19151
Carroll Park, Overbrook, Overbrook Park", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19152'] = ['muni' => "19152
Bells Corner, Holme Circle, Pennypack, Rawhnhurst, Sandyford Park", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19153'] = ['muni' => "19153
Eastwick, Penrose Park", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; $collected['19154'] = ['muni' => "19154
Millbrook, Modena Park, Parkwood", 'thecount' => 0, 'prices' => "",'medianprice' > 0, 'doms' => "", 'dom' => 0]; ini_set("auto_detect_line_endings", true); $fp = fopen('/Library/WebServer/csv/2024-philadelphia-jan-nov.csv','r'); while(($entry = fgetcsv($fp,8192,',')) !== FALSE) { // if(($entry[33] < "2024-06-01") || ($entry[33] > "2024-07-31")) {continue;} $ma = explode(" - ", $entry[2]); // $entry[0] = $ma[0]; // parse MLS Area Full Name $entry[0] = $entry[11]; // parse MLS Area Full Name //if($entry[NEWCON] == "Yes") { // (continue; //} // $entry[MUNI] = preg_replace('~ \([0-9][0-9][0-9][0-9][0-9]\)~','',$entry[MUNI]); // (int) $price = str_replace(",","",str_replace("$","",$entry[PRICE])); if(array_key_exists($entry[0],$collected)) { // echo("Exists " . $collected[$entry[0]]['muni'] . "
"); $collected[$entry[0]]['thecount'] += 1; $collected[$entry[0]]['prices'] .= ($entry[8] . ","); $collected[$entry[0]]['dom'] .= ($entry[18] . ","); if($price < $collected[$entry[0]]['low']) { $collected[$entry[0]]['low'] = $price; } if($price > $collected[$entry[0]]['high']) { $collected[$entry[0]]['high'] = $price; } } } // $status = array_column($collected,0); // array_multisort($collected,SORT_DESC,$status,$collected[]); ?> Single Family Resales Summary, Philadelphia, PA (Jan thru July 2024)

Philadelphia Pennsylvania
Existing Single Family Homes Sold
January through November 2024

Philadelphia County PA

Photo: Circa 1950, 3 Bedroom Twin Townhome
sold in 4 days for $25,000 over list price
by Jefy Abraham, Realtor®
Keller Williams Real Estate, Northeast Philadelphia.

Neighborhood names and their boundaries are fluid, often partly overlapping zip codes and, sometimes, each other.

MunicipalityMedian ‡
Sold Price# Homes
SoldMedian Days
on Market"); foreach($collected as $key => $content) { $price_array = explode(",",$content['prices']); $dom_array = explode(",",$content['dom']); sort($price_array, SORT_NUMERIC); sort($dom_array, SORT_NUMERIC); unset($price_array[0]); unset($dom_array[0]); // $average = ceil( array_sum($price_array) / count($price_array) ); // $avg = mmmr($price_array, 'mean'); $median = mmmr($price_array, 'median'); $collected[$key]['medianprice'] = $median; $dom = mmmr($dom_array, 'median'); $collected[$key]['dom'] = $dom; $mode = mmmr($price_array, 'mode'); $low = $price_array[1]; $high = $price_array[count($price_array)]; $howmany = count($price_array); $collectd[$key]['thecount'] = $howmany; // Make Key into key-link //$link = $key; //$link = "" . $key . ""; //$link = $key; } foreach($collected as $key => $val) { $medianprice[$key] = $val['medianprice']; // $dom[$key] = $val['dom']; $thecount[$key] = $val['thecount']; } array_multisort($medianprice, SORT_DESC, $collected); foreach($collected as $key => $val) { //$link = $key; $link = "" . $key . ""; // if($collected[$key]['medianprice'] == 0) { continue; } //echo(" " . $key . ""); echo(" " . $collected[$key]['muni'] . ""); echo("" . number_format(round($collected[$key]['medianprice'],-3)) . ""); echo("" . number_format($collected[$key]['thecount'],-3) . ""); echo("" . number_format($collected[$key]['dom']) . ""); } echo(""); ?>

‡ Prices 1/1/2024 thru 11/30/2024, Bright MLS Settled Sales (rounded to the nearest $1,000).

locations
john mcclintock team