Advertisement
iEmanuele

echo textarea value with line breaks

Aug 30th, 2013
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.15 KB | None | 0 0
  1. //In your functions.php
  2. function the_textarea_value( $textarea ){
  3.     $lines = explode("\n", $textarea);
  4.     foreach( $lines as $line ){
  5.       echo $line;
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement