<?php $a = "a\nb\nc"; echo(preg_replace('/b.*/', '', $a));
You have javascript disabled. You will not be able to edit any code.