<?php $string = ' My text1 My text2 My text3 '; var_export( preg_split('/\R+/', $string, 0, PREG_SPLIT_NO_EMPTY) );
You have javascript disabled. You will not be able to edit any code.