<?php $regex = '/[\s\r\n]+/'; $string = "This is a string\nwith multiple\r\nline breaks."; $split = preg_split($regex, $string); foreach ($split as $line) ...
確定! 回上一頁