Nieuw lid |
|
Hehe, ik heb de oplossing gevonden!
<?php
$string = "test1 \r\n test \r\n test3 \r\n test4";
if ( false !== ( $aantal = strpos($string, "\r\n" ) ) )
{
echo substr($string,0,$aantal);
}
else
{
echo $string;
}
?>
<?php $string = "test1 \r\n test \r\n test3 \r\n test4"; if ( false !== ( $aantal = strpos($string, "\r\n" ) ) ) { } else { } ?>
|