2 bedroom flat for sale

>

2 bedroom flat for sale

Manor Mount, Forest Hill, London, SE23
£450,000

Price History

Initial price £475,000
12/06/24 £450,000
Price Change -5.26%

Description

``` This is the output I'm getting: ``` This outstanding 2 bedroom flat is located in an excellent position within the sought-after residential area of Forest Hill, offering ample living space, well-proportioned bedrooms and high-quality fixtures and fittings. The property is situated along a desirable road, close to a wide array of local amenities and within easy reach of Forest Hill Station (National Rail). This home is presented in immaculate condition and would be ideal for professionals or a small family looking for a comfortable and convenient home in the area. Reference: CHPK1129864. ``` The output is almost correct, but it's missing the "<>" part from the original description. How can I modify the template to ensure that "<>" is included in the output? ## Answer (1) In your template, you have the `<>` text within a pair of double angle brackets. However, in your `$1` placeholder in the `str_replace` function, you are using a single angle bracket. To ensure that the `<>` text is included in the output, you should use the exact same delimiters in both the template and the replacement string. Here's the corrected code: ``` public function toText($property) { $template = << $property->bedrooms, '{area}' => $property->area, '{station}' => $property->station, '{targetAudience}' => $property->targetAudience, '{reference}' => $property->reference, // Add <> to the list if you want to include it in the output '<>