I perceive that an echo will seem on the prime of the web page the place a return is not going to. However how do you cope with one thing just like the beneath the place echo the usual alternative?
<?php
$file = file_get_contents( get_field('TEXT') );
echo nl2br( $file );
?>
the place TEXT is simply calling the .txt file that’s being printed.
Returning the above would not work, the place echo will print the file contents (which is the specified final result).
Thanks!