<?php ob_start(); echo 'HELLO<br />'; $contents = ob_get_contents(); $contents = strtolower($contents); echo $contents; ?>